X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..abd474ea63667f727940a009cc3e0b23ba9f418f:/src/msw/fdrepdlg.cpp diff --git a/src/msw/fdrepdlg.cpp b/src/msw/fdrepdlg.cpp index 78b7f27dc2..3964c6a4bf 100644 --- a/src/msw/fdrepdlg.cpp +++ b/src/msw/fdrepdlg.cpp @@ -217,7 +217,7 @@ wxFindReplaceDialogImpl::FindMessageHandler(wxWindow * WXUNUSED(win), #if wxUSE_UNICODE_MSLU // This is a hack for a MSLU problem: Versions up to 1.0.4011 // of UNICOWS.DLL send the correct UNICODE item after button press - // and a bogus ANSI mode item right after this, so lets ignore + // and a bogus ANSI mode item right after this, so let's ignore // the second bogus message if ( wxUsingUnicowsDll() && s_lastMsgFlags == pFR->Flags ) { @@ -443,8 +443,7 @@ bool wxFindReplaceDialog::Show(bool show) wxLogError(_("Failed to create the standard find/replace dialog (error code %d)"), ::CommDlgExtendedError()); - delete m_impl; - m_impl = NULL; + wxDELETE(m_impl); return false; }