]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/ownerdrw/ownerdrw.cpp
Small changed to wxExtDialog
[wxWidgets.git] / samples / ownerdrw / ownerdrw.cpp
index 87f8c89da58325bdae2fe812574a46479b283a2b..741ddec001375e4759ec9d8f4d48f423058855e4 100644 (file)
@@ -241,6 +241,8 @@ OwnerDrawnFrame::OwnerDrawnFrame(wxFrame *frame, char *title, int x, int y, int
     
   }
 
+  delete[] astrChoices;
+
   // create the status line
   const int widths[] = { -1, 60 };
   CreateStatusBar(2);
@@ -261,7 +263,8 @@ void OwnerDrawnFrame::OnQuit(wxCommandEvent& event)
 
 void OwnerDrawnFrame::OnAbout(wxCommandEvent& event)
 {
-  wxMessageDialog dialog(this, "Demo of owner-drawn controls\n"
+  wxMessageDialog dialog(this,
+                         "Demo of owner-drawn controls\n",
                          "About wxOwnerDrawn", wxYES_NO | wxCANCEL);
   dialog.ShowModal();
 }