From c3b501e187fdb318911177e5ad90fea9e163a112 Mon Sep 17 00:00:00 2001 From: Kevin Hock Date: Wed, 5 Oct 2005 15:38:44 +0000 Subject: [PATCH] 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 --- src/unix/gsocket.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 550b3d51b3..874098d3b6 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -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) {