From: Vadim Zeitlin Date: Tue, 18 Jan 2005 16:11:09 +0000 (+0000) Subject: fixed crash if an error happened inside WaitConnection() (patch 1093852) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1539bf2744fe65187dfe473ef0787fff32fcd0df?ds=inline 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 --- diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 7864aa59f3..28e293681c 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -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;