Commit 1806b047 authored by Moritz Lipp's avatar Moritz Lipp

Initialize lock before creating the render thread

parent a5bf154d
......@@ -51,12 +51,6 @@ render_init(zathura_t* zathura)
goto error_free;
}
render_thread->thread = g_thread_create(render_job, render_thread, TRUE, NULL);
if (!render_thread->thread) {
goto error_free;
}
render_thread->cond = g_cond_new();
if (!render_thread->cond) {
......@@ -69,6 +63,12 @@ render_init(zathura_t* zathura)
goto error_free;
}
render_thread->thread = g_thread_create(render_job, render_thread, TRUE, NULL);
if (!render_thread->thread) {
goto error_free;
}
return render_thread;
error_free:
......
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