From f79ec329cb7c928b91a86eda0527531f72c414a1 Mon Sep 17 00:00:00 2001 From: "joonbum.ko" Date: Thu, 6 Jul 2017 19:46:34 +0900 Subject: [PATCH] tpl_wayland_egl_thread: Fixed memory corruption bug related to thread context. Change-Id: I0458b16cb80889e46029dcf929cd6aa27b3ffbc5 Signed-off-by: joonbum.ko --- src/tpl_wayland_egl_thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index 4e1c907..126ce3a 100644 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -269,8 +269,8 @@ twe_thread_destroy(twe_thread* thread) g_thread_join(thread->ctx->twe_thread); g_main_loop_unref(thread->ctx->twe_loop); - free(thread->ctx); - thread->ctx = NULL; + free(_twe_ctx); + _twe_ctx = NULL; } TPL_LOG_T("WL_EGL", "[THREAD DESTROY] twe_thread(%p)", thread); -- 2.7.4