]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/spinctrl.cpp
better <HR> tag handling in wxHTML
[wxWidgets.git] / src / msw / spinctrl.cpp
index b06ff27e385b5be01003d16f5d76df2f4fca6a68..22ee0816c994a84e47afdf81fb5cbb32a8c9472f 100644 (file)
@@ -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());