X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de6185e212ebc37ff11ff70278e3c4f68419b097..5ac1d44aa499901b1a2e194292ba7a93112196ae:/src/common/url.cpp?ds=inline diff --git a/src/common/url.cpp b/src/common/url.cpp index 3ece422a34..14ebd7b851 100644 --- a/src/common/url.cpp +++ b/src/common/url.cpp @@ -185,7 +185,9 @@ void wxURL::CleanData() #if wxUSE_PROTOCOL_HTTP if (!m_useProxy) #endif // wxUSE_PROTOCOL_HTTP - delete m_protocol; + if (m_protocol) + // Need to safely delete the socket (pending events) + m_protocol->Destroy(); } wxURL::~wxURL()