From fa68ec127dd40a63875a9408d699847f44076769 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 8 Apr 2015 14:49:17 -0400 Subject: [PATCH] e_comp: Only need 'type' variable if we are building with HAVE_WAYLAND Signed-off-by: Chris Michael --- src/bin/e_comp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c index 25132e5eb..52876de28 100644 --- a/src/bin/e_comp.c +++ b/src/bin/e_comp.c @@ -1277,8 +1277,6 @@ e_comp_internal_save(void) EINTERN int e_comp_shutdown(void) { - E_Pixmap_Type type = e_comp->comp_type; - E_FREE_FUNC(action_timeout, ecore_timer_del); while (e_comp->clients) e_object_del(eina_list_data_get(e_comp->clients)); @@ -1288,6 +1286,8 @@ e_comp_shutdown(void) E_FREE_LIST(hooks, e_client_hook_del); #ifdef HAVE_WAYLAND + E_Pixmap_Type type = e_comp->comp_type; + if (type == E_PIXMAP_TYPE_WL) e_comp_wl_shutdown(); #endif