fix invalid read in render thread

This commit is contained in:
Sebastian Ramacher 2012-02-14 16:01:50 +01:00
parent e7f0e30d99
commit 8c10161acf

View File

@ -112,7 +112,7 @@ render_free(render_thread_t* render_thread)
}
if (render_thread->list) {
girara_list_free(render_thread->list);
girara_list_clear(render_thread->list);
}
if (render_thread->cond) {
@ -121,6 +121,10 @@ render_free(render_thread_t* render_thread)
g_cond_free(render_thread->cond);
}
if (render_thread->list) {
girara_list_free(render_thread->list);
}
if (render_thread->lock) {
g_mutex_free(render_thread->lock);
}