Fixes memory leaks that occur when dragging toolbars around... Dragging a toolbar so that it changes the dock state to reproduce the memory leak in old code - Submitted by Hans Van Leemputten

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
George Tasker
2002-01-29 21:27:08 +00:00
parent 0508ba2a6b
commit 4926b15b7d

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