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
This commit is contained in:
@@ -760,8 +760,9 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
|
|||||||
wxStaticBitmap *bmpStatic = new wxStaticBitmap(panel, -1, icon,
|
wxStaticBitmap *bmpStatic = new wxStaticBitmap(panel, -1, icon,
|
||||||
wxPoint(10, 10));
|
wxPoint(10, 10));
|
||||||
|
|
||||||
bmpStatic = new wxStaticBitmap(panel, -1, wxNullIcon, wxPoint(50, 10));
|
// VZ: don't leak memory
|
||||||
bmpStatic->SetIcon(wxArtProvider::GetIcon(wxART_QUESTION));
|
// bmpStatic = new wxStaticBitmap(panel, -1, wxNullIcon, wxPoint(50, 10));
|
||||||
|
// bmpStatic->SetIcon(wxArtProvider::GetIcon(wxART_QUESTION));
|
||||||
#endif // !Motif
|
#endif // !Motif
|
||||||
|
|
||||||
wxBitmap bitmap( 100, 100 );
|
wxBitmap bitmap( 100, 100 );
|
||||||
|
Reference in New Issue
Block a user