don't crash on wl shutdown

devilhorns? more like crasherhorns imo
This commit is contained in:
Mike Blumenkrantz 2015-04-08 14:56:05 -04:00
parent fa68ec127d
commit a73d2583c5
1 changed files with 3 additions and 2 deletions

View File

@ -1277,6 +1277,9 @@ e_comp_internal_save(void)
EINTERN int
e_comp_shutdown(void)
{
#ifdef HAVE_WAYLAND
E_Pixmap_Type type = e_comp->comp_type;
#endif
E_FREE_FUNC(action_timeout, ecore_timer_del);
while (e_comp->clients)
e_object_del(eina_list_data_get(e_comp->clients));
@ -1286,8 +1289,6 @@ 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