]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/regex.cpp
Explicitly unregister custom wxWebViewIE namespaces when we are done with them. Also...
[wxWidgets.git] / src / common / regex.cpp
index f81154d5100725f6b7332cbfbdfade83a7684a02..4683b81de3965847a03adf4a2f71b830ca840ae7 100644 (file)
@@ -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;
     }