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:
Kevin Hock
2006-06-11 18:54:07 +00:00
parent 4b90e06ee5
commit 5f3742c2ff

View File

@@ -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()