]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/fl/garbagec.cpp
fix Borland makefile for xrc as per SF report 747099
[wxWidgets.git] / contrib / src / fl / garbagec.cpp
index 564823928bb467c906eed98d78b78e6521597d9d..993da58553614021f17b1c026d7c795b611ca09a 100644 (file)
@@ -196,6 +196,7 @@ void GarbageCollector::ArrangeCollection()
                 pNode = pNode->Next();
             }
 
+            mAllNodes.Clear();
             break;
         }
 
@@ -217,8 +218,7 @@ wxList& GarbageCollector::GetCycledObjects()
 void GarbageCollector::Reset()
 {
     DestroyItemList( mAllNodes   );
-
-    mRegularLst.Clear();
-    mCycledLst.Clear();
+    DestroyItemList( mRegularLst );
+    DestroyItemList( mCycledLst );
 }