X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ee9a28abee8a08f5b5b658282159a4a6db966173..65442ab650425a5f6a1d5d685e8df582401a9be7:/src/mac/corefoundation/gsockosx.cpp?ds=sidebyside diff --git a/src/mac/corefoundation/gsockosx.cpp b/src/mac/corefoundation/gsockosx.cpp index 0d2915900e..628cf47786 100644 --- a/src/mac/corefoundation/gsockosx.cpp +++ b/src/mac/corefoundation/gsockosx.cpp @@ -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);