From 8968638b1e6d0c71441c2b39befcb66ebaedad07 Mon Sep 17 00:00:00 2001 From: lucas Date: Fri, 3 Jun 2011 16:06:57 +0000 Subject: [PATCH] Fix ecore_file initialization We must init ecore, otherwise we will not have an eina ref. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@59916 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_file/ecore_file.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/ecore_file/ecore_file.c b/src/lib/ecore_file/ecore_file.c index 03ab703..e34fe21 100644 --- a/src/lib/ecore_file/ecore_file.c +++ b/src/lib/ecore_file/ecore_file.c @@ -47,6 +47,10 @@ ecore_file_init() { if (++_ecore_file_init_count != 1) return _ecore_file_init_count; + + if (!ecore_init()) + return --_ecore_file_init_count; + _ecore_file_log_dom = eina_log_domain_register ("ecore_file", ECORE_FILE_DEFAULT_LOG_COLOR); if(_ecore_file_log_dom < 0) @@ -99,8 +103,12 @@ ecore_file_shutdown() ecore_file_download_shutdown(); ecore_file_monitor_shutdown(); ecore_file_path_shutdown(); + eina_log_domain_unregister(_ecore_file_log_dom); _ecore_file_log_dom = -1; + + ecore_shutdown(); + return _ecore_file_init_count; } -- 2.7.4