]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/gsocket.cpp
marked const wxHtmlEntitiesParser methods as such
[wxWidgets.git] / src / unix / gsocket.cpp
index 13a3b5b12cf02b3c6ce9367615ddc1209882b630..0c8f5f9a403547afd33332ffe600d95a5fd8f365 100644 (file)
@@ -20,6 +20,7 @@
 
 #ifndef __GSOCKET_STANDALONE__
 #include "wx/defs.h"
+#include "wx/private/gsocketiohandler.h"
 #endif
 
 #if defined(__VISAGECPP__)
@@ -520,6 +521,8 @@ GSocket::GSocket()
   int i;
 
   m_fd                  = INVALID_SOCKET;
+  m_handler             = NULL;
+
   for (i=0;i<GSOCK_MAX_EVENT;i++)
   {
     m_cbacks[i]         = NULL;
@@ -565,6 +568,8 @@ GSocket::~GSocket()
   /* Per-socket GUI-specific cleanup */
   gs_gui_functions->Destroy_Socket(this);
 
+  delete m_handler;
+
   /* Destroy private addresses */
   if (m_local)
     GAddress_destroy(m_local);