Removed memory leak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -317,6 +317,10 @@ wxSpinCtrl::~wxSpinCtrl()
|
||||
{
|
||||
ms_allSpins.Remove(this);
|
||||
|
||||
// This removes spurious memory leak reporting
|
||||
if (ms_allSpins.GetCount() == 0)
|
||||
ms_allSpins.Clear();
|
||||
|
||||
// destroy the buddy window because this pointer which wxBuddyTextWndProc
|
||||
// uses will not soon be valid any more
|
||||
::DestroyWindow(GetBuddyHwnd());
|
||||
|
Reference in New Issue
Block a user