summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2020-09-25 10:30:04 +0100
committerStefan Schmidt <stefan@datenfreihafen.org>2020-09-26 14:45:48 +0200
commitb6ecdbb91c6d90cfd332c90c233bfb359f5ff1f1 (patch)
treef6e84ae8f06fa6ddca8504153fa73274009ea714
parentab44a15b4c2a9b9f494dc201b869322462e409b1 (diff)
downloadefl-b6ecdbb91c6d90cfd332c90c233bfb359f5ff1f1.tar.gz
Ethumb: reorder _init/shutdown functions, ecore and evas init/shutdown are useless, as ecore_evas already manages them
Test Plan: compilation Reviewers: raster Reviewed By: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12161
-rw-r--r--src/lib/ethumb/ethumb.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c
index ca019823ae..3d2bee9ee4 100644
--- a/src/lib/ethumb/ethumb.c
+++ b/src/lib/ethumb/ethumb.c
@@ -256,8 +256,6 @@ ethumb_init(void)
_plugins_ext = eina_hash_string_small_new(NULL);
EINA_SAFETY_ON_NULL_GOTO(_plugins_ext, error_plugins_ext);
- evas_init();
- ecore_init();
ecore_evas_init();
edje_init();
@@ -285,6 +283,8 @@ ethumb_init(void)
return ++initcount;
error_plugins_ext:
+ edje_shutdown();
+ ecore_evas_shutdown();
eina_prefix_free(_pfx);
_pfx = NULL;
@@ -312,10 +312,8 @@ ethumb_shutdown(void)
eina_stringshare_del(_home_thumb_dir);
eina_stringshare_del(_thumb_category_normal);
eina_stringshare_del(_thumb_category_large);
- evas_shutdown();
- ecore_shutdown();
- ecore_evas_shutdown();
edje_shutdown();
+ ecore_evas_shutdown();
eina_prefix_free(_pfx);
_pfx = NULL;
eina_log_domain_unregister(_log_dom);