]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sizer.cpp
Include wx/listbox.h according to precompiled headers of wx/wx.h (with other minor...
[wxWidgets.git] / src / common / sizer.cpp
index 4542871dd8a489eb299cbea5e90912b9809b3b49..131977e2afd77697d56802802728b61e0e42409c 100644 (file)
     #include "wx/math.h"
     #include "wx/utils.h"
     #include "wx/settings.h"
+    #include "wx/statbox.h"
 #endif // WX_PRECOMP
 
 #include "wx/sizer.h"
-#include "wx/statbox.h"
 #include "wx/listimpl.cpp"
 
 #if WXWIN_COMPATIBILITY_2_4
@@ -1715,6 +1715,11 @@ wxStaticBoxSizer::wxStaticBoxSizer(int orient, wxWindow *win, const wxString& s)
     m_staticBox->SetContainingSizer(this);
 }
 
+wxStaticBoxSizer::~wxStaticBoxSizer()
+{
+    delete m_staticBox;
+}
+
 static void GetStaticBoxBorders( wxStaticBox *box,
                                  int *borderTop,
                                  int *borderOther)