tpl_wayland_egl_thread: Add missing mutex unlock in error handling 06/152506/1
authorHoyub Lee <hoyub.lee@samsung.com>
Tue, 26 Sep 2017 08:09:15 +0000 (17:09 +0900)
committerHoyub Lee <hoyub.lee@samsung.com>
Tue, 26 Sep 2017 08:32:07 +0000 (17:32 +0900)
Change-Id: I15a558d8f88c30990231c759b9ca3b171ff7eb35
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
src/tpl_wayland_egl_thread.c

index 54803ed..d14fdd8 100644 (file)
@@ -961,6 +961,7 @@ static void __cb_tss_flusher_flush_callback(void *data,
                                                                                        disp_source->ev_queue);
        if (ret == -1) {
                _twe_display_print_err(disp_source, "dispatch_queue_pending");
+               TPL_OBJECT_UNLOCK(&disp_source->obj);
                return;
        }
 
@@ -1004,6 +1005,7 @@ static void __cb_tss_flusher_free_flush_callback(void *data,
                                                                                        disp_source->ev_queue);
        if (ret == -1) {
                _twe_display_print_err(disp_source, "dispatch_queue_pending");
+               TPL_OBJECT_UNLOCK(&disp_source->obj);
                return;
        }