]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/corefoundation/gsockosx.cpp
This change will make the parent TLW come to
[wxWidgets.git] / src / mac / corefoundation / gsockosx.cpp
index 0d2915900e276095515bd2c6b803685cbe5d07b3..628cf4778614f42c82a6e2f2f9d7d046a1414bca 100644 (file)
@@ -123,6 +123,8 @@ void GSocketGUIFunctionsTableConcrete::Destroy_Socket(GSocket *socket)
     struct MacGSocketData *data = (struct MacGSocketData*)(socket->m_gui_dependent);
     if (data)
     {
+        if ( data->source )
+            CFRelease(data->source);
         if ( data->socket )
             CFRelease(data->socket);
         free(data);