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 ); }