X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..ac6a837eeddb76f2fabe2389cf5fe39ca3b99041:/src/common/regex.cpp

diff --git a/src/common/regex.cpp b/src/common/regex.cpp
index f81154d510..4683b81de3 100644
--- a/src/common/regex.cpp
+++ b/src/common/regex.cpp
@@ -646,8 +646,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;
     }