tpl_wl_egl_thread: Add missing mutex unlock in error handling 07/152507/1
authorHoyub Lee <hoyub.lee@samsung.com>
Tue, 26 Sep 2017 08:25:01 +0000 (17:25 +0900)
committerHoyub Lee <hoyub.lee@samsung.com>
Tue, 26 Sep 2017 08:32:19 +0000 (17:32 +0900)
Change-Id: I45ab54c170de85a8a1b7feb59b9303a40483cfec
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
src/tpl_wl_egl_thread.c

index 0a590ca..da3d41c 100644 (file)
@@ -420,7 +420,12 @@ __tpl_wl_egl_surface_fini(tpl_surface_t *surface)
 
        wayland_egl_display = (tpl_wayland_egl_display_t *)
                                                  surface->display->backend.data;
-       TPL_CHECK_ON_NULL_RETURN(wayland_egl_display);
+
+       if (wayland_egl_display == NULL) {
+               TPL_ERR("check failed: wayland_egl_display == NULL");
+               TPL_OBJECT_UNLOCK(wayland_egl_surface);
+               return;
+       }
 
        if (surface->type == TPL_SURFACE_TYPE_WINDOW) {
                TPL_LOG_T("WL_EGL",