diff --git a/source/ui/section/task.c b/source/ui/section/task.c index 801675a..61d590f 100644 --- a/source/ui/section/task.c +++ b/source/ui/section/task.c @@ -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); -} \ No newline at end of file +} diff --git a/source/ui/ui.c b/source/ui/ui.c index ca005a5..c57c334 100644 --- a/source/ui/ui.c +++ b/source/ui/ui.c @@ -214,4 +214,4 @@ void ui_draw() { ui_draw_bottom(ui); screen_end_frame(); } -} \ No newline at end of file +}