summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxav/msi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/toxav/msi.c b/toxav/msi.c
index 497af13b..65e45a92 100644
--- a/toxav/msi.c
+++ b/toxav/msi.c
@@ -1287,11 +1287,14 @@ int msi_kill ( MSISession *session )
1287 /* Cancel all? */ 1287 /* Cancel all? */
1288 uint16_t _it = 0; 1288 uint16_t _it = 0;
1289 /*for ( ; _it < session->calls[idx]->peer_count; _it++ ) 1289 /*for ( ; _it < session->calls[idx]->peer_count; _it++ )
1290 * FIXME: will not work on multiple peers, must cancel call for all peers 1290 * FIXME: will not work on multiple peers, must cancel call for all peers
1291 */ 1291 */
1292 msi_cancel ( session, idx, session->calls[idx]->peers [_it], "MSI session terminated!" ); 1292 msi_cancel ( session, idx, session->calls[idx]->peers [_it], "MSI session terminated!" );
1293 } 1293 }
1294 1294
1295 free(((TimerHandler *)session->timer_handler)->timers);
1296 free(session->timer_handler);
1297
1295 free ( session->calls ); 1298 free ( session->calls );
1296 pthread_mutex_unlock(session->mutex); 1299 pthread_mutex_unlock(session->mutex);
1297 pthread_mutex_destroy(session->mutex); 1300 pthread_mutex_destroy(session->mutex);