Do not allow events to fire after socket is closed (fixes crash on GTK with GDK_Input events) [Patch 1281054]

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Hock 2005-10-05 15:38:44 +00:00
parent 12af050427
commit c3b501e187

View File

@ -328,6 +328,9 @@ void GSocket::Shutdown()
assert(this);
/* Don't allow events to fire after socket has been closed */
gs_gui_functions->Disable_Events(this);
/* If socket has been created, shutdown it */
if (m_fd != INVALID_SOCKET)
{