X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ee9a28abee8a08f5b5b658282159a4a6db966173..3b439e60e0119e890ec0040545875ff11352f24a:/src/mac/corefoundation/gsockosx.cpp 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);