Fix socket crash in wxURL by safely Destroying the socket rather than deleting it [ patch 1502964 ]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -185,7 +185,9 @@ void wxURL::CleanData()
|
|||||||
#if wxUSE_PROTOCOL_HTTP
|
#if wxUSE_PROTOCOL_HTTP
|
||||||
if (!m_useProxy)
|
if (!m_useProxy)
|
||||||
#endif // wxUSE_PROTOCOL_HTTP
|
#endif // wxUSE_PROTOCOL_HTTP
|
||||||
delete m_protocol;
|
if (m_protocol)
|
||||||
|
// Need to safely delete the socket (pending events)
|
||||||
|
m_protocol->Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxURL::~wxURL()
|
wxURL::~wxURL()
|
||||||
|
Reference in New Issue
Block a user