From 54ae7bf4942a186ede769c62815ba6f762c47b23 Mon Sep 17 00:00:00 2001 From: "joonbum.ko" Date: Fri, 12 May 2017 13:03:05 +0900 Subject: [PATCH] tpl_wayland_egl_thread: Fixed an abnormal destroy procedure to avoid double free problem. Change-Id: I2fb9d3060b92513b1a884d588453c7c430bce813 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 661fb09..882733d 100644 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -161,8 +161,8 @@ twe_thread_create(void) g_source_set_callback(_twe_ctx->tdm_gsource, _twe_thread_tdm_source_dispatch, - _twe_ctx, - _twe_thread_tdm_source_destroy); + NULL, + NULL); g_source_attach(_twe_ctx->tdm_gsource, g_main_loop_get_context(_twe_ctx->twe_loop)); TPL_LOG_T("WL_EGL", "tdm g_source(%p) attached to twe_loop(%p)", -- 2.7.4