X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/00e075e5517eb85c3fd4e4134f19d87b91ed4bc0..17d98558b35b75e3cad68d96841b4fa5a0c7e6ee:/src/common/url.cpp diff --git a/src/common/url.cpp b/src/common/url.cpp index 383a5d088b..c0fb31cac2 100644 --- a/src/common/url.cpp +++ b/src/common/url.cpp @@ -365,8 +365,7 @@ void wxURL::SetDefaultProxy(const wxString& url_proxy) if ( ms_proxyDefault ) { ms_proxyDefault->Close(); - delete ms_proxyDefault; - ms_proxyDefault = NULL; + wxDELETE(ms_proxyDefault); } } else @@ -487,8 +486,7 @@ bool wxURLModule::OnInit() void wxURLModule::OnExit() { #if wxUSE_PROTOCOL_HTTP - delete wxURL::ms_proxyDefault; - wxURL::ms_proxyDefault = NULL; + wxDELETE(wxURL::ms_proxyDefault); #endif // wxUSE_PROTOCOL_HTTP }