From ad430a3045a3bd6f59a607be3d26f895b6704f8a Mon Sep 17 00:00:00 2001 From: Junkyeong Kim Date: Fri, 5 Aug 2016 16:37:41 +0900 Subject: [PATCH] add resource management when init fail Change-Id: Ic8d86d4ea2e7efaf968e16b96212a26a0dda0e4c Signed-off-by: Junkyeong Kim --- src/wayland/eom-wayland.c | 7 +++++++ 1 file changed, 7 insertions(+) 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*/ } -- 2.7.4