diff options
author | Bruno Dilly <bdilly@profusion.mobi> | 2016-10-03 11:19:22 -0300 |
---|---|---|
committer | Bruno Dilly <bdilly@profusion.mobi> | 2016-10-31 16:05:57 -0200 |
commit | e09477acbe057e69099b9b098053b6728f011904 (patch) | |
tree | e6ed6f38edb8a1041d0a4f2a1da26a33aadca1e7 | |
parent | 7285778109c29b17439dcdebe8a395d319a33065 (diff) | |
download | efl-e09477acbe057e69099b9b098053b6728f011904.tar.gz |
ecore_evas/wayland: remove unnecessary NULL attributions
When freeing wdata there is no reason to set each
freed field to NULL.
-rw-r--r-- | src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c index b41e907fb7..0ec70bf796 100644 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c @@ -521,16 +521,11 @@ _ecore_evas_wl_common_free(Ecore_Evas *ee) ee_list = eina_list_remove(ee_list, ee); eina_list_free(wdata->regen_objs); - if (wdata->anim_callback) wl_callback_destroy(wdata->anim_callback); - wdata->anim_callback = NULL; - ecore_event_handler_del(wdata->sync_handler); - if (wdata->win) ecore_wl2_window_free(wdata->win); - wdata->win = NULL; - ecore_wl2_display_disconnect(wdata->display); + free(wdata); ecore_event_window_unregister(ee->prop.window); |