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++) {
@ -1530,4 +1533,4 @@ void ui_draw_ticket_info(ui_view* view, void* data, float x1, float y1, float x2
float titleIdX = x1 + (x2 - x1 - titleIdWidth) / 2;
float titleIdY = y1 + (y2 - y1) / 2 - 8;
screen_draw_string(buf, titleIdX, titleIdY, 0.5f, 0.5f, 0xFF000000, false);
}
}

View File

@ -214,4 +214,4 @@ void ui_draw() {
ui_draw_bottom(ui);
screen_end_frame();
}
}
}