Commit 73e28d8a authored by Youness Alaoui's avatar Youness Alaoui

Do not unref the mainloop until the thread has joined since it could be still using it

parent 91b4003a
......@@ -101,8 +101,8 @@ main(int argc, char *argv[])
g_main_loop_run (gloop);
exit_thread = TRUE;
g_main_loop_unref(gloop);
g_thread_join (gexamplethread);
g_main_loop_unref(gloop);
return EXIT_SUCCESS;
}
......
......@@ -110,8 +110,8 @@ main(int argc, char *argv[])
g_main_loop_run (gloop);
exit_thread = TRUE;
g_main_loop_unref(gloop);
g_thread_join (gexamplethread);
g_main_loop_unref(gloop);
return EXIT_SUCCESS;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment