From 9cab0a19f28773b9ffdd1f2e487b27c20a41f185 Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Mon, 24 Dec 2018 13:41:33 +0900 Subject: [PATCH] e_hwc_window: Make sure return an instance of hwc_window properly. Change-Id: I34943ca8bb34d37470d0f497b6e1c53ec6857036 --- src/bin/e_hwc_window.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/e_hwc_window.c b/src/bin/e_hwc_window.c index 251764d..3e60c5c 100644 --- a/src/bin/e_hwc_window.c +++ b/src/bin/e_hwc_window.c @@ -603,7 +603,7 @@ e_hwc_window_new(E_Hwc *hwc, E_Client *ec, E_Hwc_Window_State state) if (e_hwc_window_state_get(ec->hwc_window) != state) e_hwc_window_state_set(ec->hwc_window, state, EINA_FALSE); - goto end; + return ec->hwc_window; } thwc = hwc->thwc; @@ -642,7 +642,6 @@ e_hwc_window_new(E_Hwc *hwc, E_Client *ec, E_Hwc_Window_State state) hwc_window->ec, hwc_window, hwc->output, ec->zone->id, hwc_window->is_video, hwc_window->is_cursor); -end: return hwc_window; } -- 2.7.4