mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 18:13:46 +01:00
fix invalid read in render thread
This commit is contained in:
parent
e7f0e30d99
commit
8c10161acf
6
render.c
6
render.c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user