X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f1d5aa4eca541a2f90044a63f555985d6bd4adf3..28c45c53a6cde08276993364fa49ee651fa573ff:/samples/docview/view.cpp diff --git a/samples/docview/view.cpp b/samples/docview/view.cpp index 4cbb1e6084..6fbd4103b4 100644 --- a/samples/docview/view.cpp +++ b/samples/docview/view.cpp @@ -201,8 +201,7 @@ bool TextEditView::OnClose(bool deleteWindow) if (deleteWindow) { - wxDELETE(m_frame) - return true; + wxDELETE(m_frame); } return true; }