memset call to zero when killing call.

This commit is contained in:
irungentoo 2014-08-05 20:58:49 -04:00
parent b0bdc81426
commit 2ef89f6ae0
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -591,6 +591,7 @@ int toxav_kill_transmission ( ToxAv *av, int32_t call_index )
pthread_mutex_unlock(&call->mutex);
pthread_mutex_destroy(&call->mutex);
memset(call, 0, sizeof(CallSpecific));
return ErrorNone;
}