fixed crash if an error happened inside WaitConnection() (patch 1093852)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-01-18 16:11:09 +00:00
parent 92301a5915
commit 1539bf2744

View File

@@ -580,7 +580,6 @@ GSocket *GSocket::WaitConnection()
err = _GAddress_translate_from(connection->m_peer, &from, fromlen);
if (err != GSOCK_NOERROR)
{
GAddress_destroy(connection->m_peer);
delete connection;
m_error = err;
return NULL;