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:
parent
9755e73bd9
commit
ee9a28abee
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user