X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27a97d02eb2f3dcf031c5cbcd3c1321c6d35fce8..aed08d7967af9365edd61723ca9fff977ca744c2:/src/gtk/gsockgtk.c?ds=sidebyside diff --git a/src/gtk/gsockgtk.c b/src/gtk/gsockgtk.c index 3202c6b421..fc88b47ddb 100644 --- a/src/gtk/gsockgtk.c +++ b/src/gtk/gsockgtk.c @@ -9,6 +9,7 @@ #if wxUSE_SOCKETS +#include #include #include @@ -80,6 +81,8 @@ void _GSocket_Uninstall_Callback(GSocket *socket, GSocketEvent event) gint *m_id = (gint *)(socket->m_gui_dependent); int c; + assert( m_id != NULL ); + switch (event) { case GSOCK_LOST: /* fall-through */