git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11259
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
ms_allSpins.Remove(this);
{
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());
// destroy the buddy window because this pointer which wxBuddyTextWndProc
// uses will not soon be valid any more
::DestroyWindow(GetBuddyHwnd());