From: Junkyeong Kim Date: Fri, 5 Aug 2016 07:37:41 +0000 (+0900) Subject: add resource management when init fail X-Git-Tag: accepted/tizen/common/20160805.130348^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad430a3045a3bd6f59a607be3d26f895b6704f8a;p=platform%2Fcore%2Fuifw%2Flibeom.git add resource management when init fail Change-Id: Ic8d86d4ea2e7efaf968e16b96212a26a0dda0e4c Signed-off-by: Junkyeong Kim --- diff --git a/src/wayland/eom-wayland.c b/src/wayland/eom-wayland.c index 30d81bd..fb136d0 100644 --- a/src/wayland/eom-wayland.c +++ b/src/wayland/eom-wayland.c @@ -779,6 +779,13 @@ _eom_wayland_client_initialize() return true; fail: + if (wl_client_info.registry) { + wl_registry_destroy(wl_client_info.registry); + wl_client_info.registry = NULL; + } + + ecore_wl_shutdown(); + return false;/*LCOV_EXCL_LINE*/ }