]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/bmpbuttn.h
fix memory leak as Dimitri suggested
[wxWidgets.git] / include / wx / bmpbuttn.h
index 884796042a14c03ea49cf34c05014df17af4205a..91ff9dcec04dfd26ae63b1c1af5219bd970a8c0f 100644 (file)
@@ -27,7 +27,10 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr;
 class WXDLLEXPORT wxBitmapButtonBase : public wxButton
 {
 public:
-    wxBitmapButtonBase() { m_marginX = m_marginY = 0; }
+    wxBitmapButtonBase()
+        : m_bmpNormal(), m_bmpSelected(), m_bmpFocus(), m_bmpDisabled()
+        , m_marginX(0), m_marginY(0)
+        { }
 
     // set the bitmaps
     void SetBitmapLabel(const wxBitmap& bitmap)
@@ -87,8 +90,6 @@ private:
     #include "wx/mac/bmpbuttn.h"
 #elif defined(__WXPM__)
     #include "wx/os2/bmpbuttn.h"
-#elif defined(__WXSTUBS__)
-    #include "wx/stubs/bmpbuttn.h"
 #endif
 
 #endif // wxUSE_BMPBUTTON