]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/corefoundation/gsockosx.cpp
Added missing newline for Windows debug output
[wxWidgets.git] / src / mac / corefoundation / gsockosx.cpp
index 52e93233471631ee464d3c4a7baa4d85a2f30702..0d2915900e276095515bd2c6b803685cbe5d07b3 100644 (file)
@@ -123,7 +123,8 @@ void GSocketGUIFunctionsTableConcrete::Destroy_Socket(GSocket *socket)
     struct MacGSocketData *data = (struct MacGSocketData*)(socket->m_gui_dependent);
     if (data)
     {
-        CFRelease(data->socket);
+        if ( data->socket )
+            CFRelease(data->socket);
         free(data);
     }
 }