From: Vadim Zeitlin Date: Tue, 4 Jun 2002 12:48:17 +0000 (+0000) Subject: commented out some strange test code which resulted in memory leaks X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bebe1443c97b16f4d13e63823219a6c523a16685?hp=bb80bb5b30d7b16f39e6c1c63637f98fdf4ff63a commented out some strange test code which resulted in memory leaks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index a2781cc874..6a64e31cf0 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -760,8 +760,9 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) wxStaticBitmap *bmpStatic = new wxStaticBitmap(panel, -1, icon, wxPoint(10, 10)); - bmpStatic = new wxStaticBitmap(panel, -1, wxNullIcon, wxPoint(50, 10)); - bmpStatic->SetIcon(wxArtProvider::GetIcon(wxART_QUESTION)); + // VZ: don't leak memory + // bmpStatic = new wxStaticBitmap(panel, -1, wxNullIcon, wxPoint(50, 10)); + // bmpStatic->SetIcon(wxArtProvider::GetIcon(wxART_QUESTION)); #endif // !Motif wxBitmap bitmap( 100, 100 );