X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4cbc57f086cee690f397ac5622d3f1d7153b300e..2e25e7b7629b9c362d1fc689b536032a35441b8c:/contrib/src/fl/garbagec.cpp?ds=sidebyside diff --git a/contrib/src/fl/garbagec.cpp b/contrib/src/fl/garbagec.cpp index 564823928b..993da58553 100644 --- a/contrib/src/fl/garbagec.cpp +++ b/contrib/src/fl/garbagec.cpp @@ -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 ); }