summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxav/msi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/toxav/msi.c b/toxav/msi.c
index 7f390435..138c8d3f 100644
--- a/toxav/msi.c
+++ b/toxav/msi.c
@@ -631,6 +631,7 @@ static void *timer_poll( void *arg )
631 usleep(handler->resolution); 631 usleep(handler->resolution);
632 } 632 }
633 633
634 free(handler);
634 pthread_exit(NULL); 635 pthread_exit(NULL);
635} 636}
636 637
@@ -699,8 +700,6 @@ static void timer_terminate_session(TimerHandler *handler)
699 free(handler->timers); 700 free(handler->timers);
700 701
701 pthread_mutex_destroy( &handler->mutex ); 702 pthread_mutex_destroy( &handler->mutex );
702
703 free(handler);
704} 703}
705 704
706/** 705/**