X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0ab4b99cdfacdecc7356348aa1af2cebdc358e41..3ad5e06b4aefdcef8a1ec2ec563540e055462e66:/samples/ownerdrw/ownerdrw.cpp diff --git a/samples/ownerdrw/ownerdrw.cpp b/samples/ownerdrw/ownerdrw.cpp index 87f8c89da5..741ddec001 100644 --- a/samples/ownerdrw/ownerdrw.cpp +++ b/samples/ownerdrw/ownerdrw.cpp @@ -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(); }