Free task thread on exit.

This commit is contained in:
Steven Smith 2016-02-18 18:12:23 -08:00
parent e1fd4f7b09
commit 267d08fbda
2 changed files with 5 additions and 2 deletions

View File

@ -951,6 +951,9 @@ void task_exit() {
if(task_thread_ptr != NULL) {
svcSignalEvent(events[EVENT_QUIT]);
threadJoin(task_thread_ptr, U64_MAX);
threadFree(task_thread_ptr);
task_thread_ptr = NULL;
}
for(int i = 0; i < EVENT_COUNT; i++) {