1
0

Nullify deleted pointers.

This commit is contained in:
archshift
2014-06-19 01:49:56 -07:00
parent 35a4aa419c
commit e8143de01b
35 changed files with 75 additions and 18 deletions

View File

@@ -61,6 +61,7 @@ bool cSocketThreads::AddClient(const cSocket & a_Socket, cCallback * a_Client)
// There was an error launching the thread (but it was already logged along with the reason)
LOGERROR("A new cSocketThread failed to start");
delete Thread;
Thread = NULL;
return false;
}
Thread->AddClient(a_Socket, a_Client);