]> git.saurik.com Git - wxWidgets.git/commitdiff
Do not allow events to fire after socket is closed (fixes crash on GTK with GDK_Input...
authorKevin Hock <hockkn@yahoo.com>
Wed, 5 Oct 2005 15:38:44 +0000 (15:38 +0000)
committerKevin Hock <hockkn@yahoo.com>
Wed, 5 Oct 2005 15:38:44 +0000 (15:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/gsocket.cpp

index 550b3d51b3496ca62ffe05f5c5482425c0b4e89d..874098d3b648c7a006486039d1a17cf4dd0336d7 100644 (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)
   {