]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing memory leak (reported by Ken Thomases)
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 7 Dec 2004 07:47:15 +0000 (07:47 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 7 Dec 2004 07:47:15 +0000 (07:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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);