evas: reduce numbers of call to eet_init/eet_shutdown.
authorCedric Bail <cedric.bail@samsung.com>
Thu, 21 Nov 2013 01:47:27 +0000 (10:47 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Thu, 21 Nov 2013 01:50:48 +0000 (10:50 +0900)
src/lib/evas/canvas/evas_main.c
src/lib/evas/common/evas_image_main.c

index 101b82f..6cc8f8e 100644 (file)
@@ -51,6 +51,10 @@ evas_init(void)
 
    eo_init();
 
+#ifdef BUILD_LOADER_EET
+   eet_init();
+#endif
+
    evas_module_init();
    if (!evas_async_events_init())
      goto shutdown_module;
@@ -124,6 +128,10 @@ evas_shutdown(void)
    evas_font_dir_cache_free();
    evas_common_shutdown();
    evas_module_shutdown();
+
+#ifdef BUILD_LOADER_EET
+   eet_shutdown();
+#endif
    eo_shutdown();
 
    eina_log_domain_unregister(_evas_log_dom_global);
index 1492d80..75767dc 100644 (file)
@@ -194,9 +194,6 @@ evas_common_image_init(void)
    reference++;
 ////   ERR("REF++=%i", reference);
 
-#ifdef BUILD_LOADER_EET
-   eet_init();
-#endif
    evas_common_scalecache_init();
 }
 
@@ -229,9 +226,6 @@ evas_common_image_shutdown(void)
 #endif
      }
 
-#ifdef BUILD_LOADER_EET
-   eet_shutdown();
-#endif
    evas_common_scalecache_shutdown();
 }