From 8c10161acf0cb3a1a3a54d40d33893b7622f5e67 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Tue, 14 Feb 2012 16:01:50 +0100 Subject: [PATCH] fix invalid read in render thread --- render.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/render.c b/render.c index 2311398..cfe9abd 100644 --- a/render.c +++ b/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); }