X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1d5b7a0be4977b291d37d582717d99d7afd24f33..8366ae934aab9f835747b0c2e456231e8795fe78:/samples/resource/resource.cpp?ds=sidebyside

diff --git a/samples/resource/resource.cpp b/samples/resource/resource.cpp
index 836cf563a4..ab0405be9b 100644
--- a/samples/resource/resource.cpp
+++ b/samples/resource/resource.cpp
@@ -113,8 +113,10 @@ bool MyApp::OnInit(void)
 
 MyApp::~MyApp()
 {
+#if defined(__WXMSW__)
     delete dialog1;
     delete menu1;
+#endif
 }
 
 BEGIN_EVENT_TABLE(MyPanel, wxPanel)
@@ -173,13 +175,6 @@ void MyFrame::OnTestDialog(wxCommandEvent& WXUNUSED(event) )
       dialog->Close(TRUE);
 }
 
-bool MyFrame::OnClose(void)
-{
-  Show(FALSE);
-
-  return TRUE;
-}
-
 BEGIN_EVENT_TABLE(MyDialog, wxDialog)
   //	EVT_BUTTON(RESOURCE_OK, MyDialog::OnOk)
 	EVT_BUTTON(ID_BUTTON109, MyDialog::OnCancel)