e_comp: fixed incorrect e_comp_wl_shutdown() timing. 72/52472/5 accepted/tizen/mobile/20151124.234235 accepted/tizen/tv/20151124.234248 accepted/tizen/wearable/20151124.234300 submit/tizen/20151124.133651
authorMun, Gwan-gyeong <kk.moon@samsung.com>
Mon, 23 Nov 2015 12:45:42 +0000 (21:45 +0900)
committerGwan-gyeong Mun <kk.moon@samsung.com>
Tue, 24 Nov 2015 08:36:18 +0000 (00:36 -0800)
    e_object_del(e_comp) destroys ecore_evas engine infos.
    so e_comp_wl_shutdown() can't call evasglUnbindDisplay.

Change-Id: I4d3d0b24d50671c318ce2a1253a0c261e818f7cf

src/bin/e_comp.c

index acdabd6b0be6e959d186ed860a2362872c32b12a..74f27a47ec15db8e8e190f137263a6c538bd062c 100644 (file)
@@ -1338,15 +1338,14 @@ e_comp_shutdown(void)
    E_FREE_FUNC(action_timeout, ecore_timer_del);
    while (e_comp->clients)
      e_object_del(eina_list_data_get(e_comp->clients));
+#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
+   e_comp_wl_shutdown();
+#endif
    e_object_del(E_OBJECT(e_comp));
    E_FREE_LIST(handlers, ecore_event_handler_del);
    E_FREE_LIST(actions, e_object_del);
    E_FREE_LIST(hooks, e_client_hook_del);
 
-#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
-   e_comp_wl_shutdown();
-#endif
-
    gl_avail = EINA_FALSE;
    e_comp_cfdata_config_free(conf);
    E_CONFIG_DD_FREE(conf_match_edd);