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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user