From 834df073463998ef916cf886ea4e28f4bfb641b7 Mon Sep 17 00:00:00 2001 From: "joonbum.ko" Date: Wed, 19 Jul 2017 16:49:43 +0900 Subject: [PATCH] tpl_wayland_egl_thread: Fixed a issue of passing destroyed memory address. This commit can fix the SVACE issues below. [SVACE][WGID][264489] PASSED_TO_PROC_AFTER_FREE.EX Change-Id: I5b0ed5cf369990f6fe6809be375d47d79e7c2dcc Signed-off-by: joonbum.ko --- src/tpl_wayland_egl_thread.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index fa2cc89..ca7610c 100644 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -390,13 +390,14 @@ _twe_thread_wl_disp_finalize(GSource *source) _twe_display_print_err(disp_source, "dispatch_queue_pending"); } + TPL_LOG_T("WL_EGL", "finalize| wl_event_queue(%p)", + disp_source->ev_queue); + wl_event_queue_destroy(disp_source->ev_queue); TPL_OBJECT_UNLOCK(&disp_source->obj); __tpl_object_fini(&disp_source->obj); - TPL_LOG_T("WL_EGL", "finalize| wl_event_queue(%p)", - disp_source->ev_queue); return; } -- 2.7.4