]> git.saurik.com Git - wxWidgets.git/commitdiff
commented out some strange test code which resulted in memory leaks
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Jun 2002 12:48:17 +0000 (12:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Jun 2002 12:48:17 +0000 (12:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/controls/controls.cpp

index a2781cc874d844878d59de23af0b3b863d48c3bb..6a64e31cf020acadb8077ea5908cce6a5f04b9ee 100644 (file)
@@ -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));
 
     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 );
 #endif // !Motif
 
     wxBitmap bitmap( 100, 100 );