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:
@@ -328,6 +328,9 @@ void GSocket::Shutdown()
|
|||||||
|
|
||||||
assert(this);
|
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 socket has been created, shutdown it */
|
||||||
if (m_fd != INVALID_SOCKET)
|
if (m_fd != INVALID_SOCKET)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user