mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed memory leak.
This commit is contained in:
parent
66b27fc538
commit
7e7b7f6c33
|
@ -1292,6 +1292,9 @@ int msi_kill ( MSISession *session )
|
|||
msi_cancel ( session, idx, session->calls[idx]->peers [_it], "MSI session terminated!" );
|
||||
}
|
||||
|
||||
free(((TimerHandler *)session->timer_handler)->timers);
|
||||
free(session->timer_handler);
|
||||
|
||||
free ( session->calls );
|
||||
pthread_mutex_unlock(session->mutex);
|
||||
pthread_mutex_destroy(session->mutex);
|
||||
|
|
Loading…
Reference in New Issue
Block a user