]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/fl/garbagec.cpp
let the sample display existing page on start
[wxWidgets.git] / contrib / src / fl / garbagec.cpp
index 564823928bb467c906eed98d78b78e6521597d9d..993da58553614021f17b1c026d7c795b611ca09a 100644 (file)
@@ -196,6 +196,7 @@ void GarbageCollector::ArrangeCollection()
                 pNode = pNode->Next();
             }
 
                 pNode = pNode->Next();
             }
 
+            mAllNodes.Clear();
             break;
         }
 
             break;
         }
 
@@ -217,8 +218,7 @@ wxList& GarbageCollector::GetCycledObjects()
 void GarbageCollector::Reset()
 {
     DestroyItemList( mAllNodes   );
 void GarbageCollector::Reset()
 {
     DestroyItemList( mAllNodes   );
-
-    mRegularLst.Clear();
-    mCycledLst.Clear();
+    DestroyItemList( mRegularLst );
+    DestroyItemList( mCycledLst );
 }
 
 }