X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76106901f640588601e481cf51a24a74ba0c3b9d..830efc9b0cb87eae22d4435af7858175017522ab:/samples/controls/controls.cpp 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 );