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:
@@ -580,7 +580,6 @@ GSocket *GSocket::WaitConnection()
|
|||||||
err = _GAddress_translate_from(connection->m_peer, &from, fromlen);
|
err = _GAddress_translate_from(connection->m_peer, &from, fromlen);
|
||||||
if (err != GSOCK_NOERROR)
|
if (err != GSOCK_NOERROR)
|
||||||
{
|
{
|
||||||
GAddress_destroy(connection->m_peer);
|
|
||||||
delete connection;
|
delete connection;
|
||||||
m_error = err;
|
m_error = err;
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Reference in New Issue
Block a user