From b91d2a93ee48b4c3396c1b5d8b0abc57e76836e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20R=C4=83ceanu?= Date: Tue, 26 Feb 2019 23:21:13 +0200 Subject: [PATCH] Set sizer to the main frame and avoid leaking it --- samples/minimal/minimal.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/minimal/minimal.cpp b/samples/minimal/minimal.cpp index f765a70dac..0d91f7fc75 100644 --- a/samples/minimal/minimal.cpp +++ b/samples/minimal/minimal.cpp @@ -170,6 +170,7 @@ MyFrame::MyFrame(const wxString& title) wxButton* aboutBtn = new wxButton(this, wxID_ANY, "About..."); aboutBtn->Bind(wxEVT_BUTTON, &MyFrame::OnAbout, this); sizer->Add(aboutBtn, wxSizerFlags().Center()); + SetSizer(sizer); #endif // wxUSE_MENUS/!wxUSE_MENUS #if wxUSE_STATUSBAR