apparently this code might be called with a CFSocket not yet constructed, guard against NULL

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2004-11-19 06:34:47 +00:00
parent 9755e73bd9
commit ee9a28abee

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