X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27a97d02eb2f3dcf031c5cbcd3c1321c6d35fce8..c91a2f7e67fae4278e2f931209aa386b5d67ae9d:/src/gtk/gsockgtk.c?ds=sidebyside diff --git a/src/gtk/gsockgtk.c b/src/gtk/gsockgtk.c index 3202c6b421..6a1a3f5ee7 100644 --- a/src/gtk/gsockgtk.c +++ b/src/gtk/gsockgtk.c @@ -2,6 +2,7 @@ * Project: GSocket (Generic Socket) for WX * Name: gsockgtk.c * Purpose: GSocket: GTK part + * Licence: The wxWindows licence * CVSID: $Id$ * ------------------------------------------------------------------------- */ @@ -9,6 +10,7 @@ #if wxUSE_SOCKETS +#include #include #include @@ -80,6 +82,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 */