X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..afab8b85c4bdeb11a248c57d13e9bcfa14149ef8:/src/common/regex.cpp?ds=inline diff --git a/src/common/regex.cpp b/src/common/regex.cpp index f81154d510..a93ca08bf5 100644 --- a/src/common/regex.cpp +++ b/src/common/regex.cpp @@ -4,7 +4,6 @@ // Author: Karsten Ballueder and Vadim Zeitlin // Modified by: // Created: 13.07.01 -// RCS-ID: $Id$ // Copyright: (c) 2000 Karsten Ballueder // 2001 Vadim Zeitlin // Licence: wxWindows licence @@ -646,8 +645,7 @@ bool wxRegEx::Compile(const wxString& expr, int flags) if ( !m_impl->Compile(expr, flags) ) { // error message already given in wxRegExImpl::Compile - delete m_impl; - m_impl = NULL; + wxDELETE(m_impl); return false; }