]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed crash if an error happened inside WaitConnection() (patch 1093852)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Jan 2005 16:11:09 +0000 (16:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Jan 2005 16:11:09 +0000 (16:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/gsocket.cpp

index 7864aa59f3e46e6a33a29e717cbca149d82e7920..28e293681cdfe4351d3cfa94936ea7950275e36a 100644 (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;