Fix ecore_file initialization

We must init ecore, otherwise we will not have an eina ref.



SVN revision: 59916
This commit is contained in:
Lucas De Marchi 2011-06-03 16:06:57 +00:00
parent 3d4c2fb340
commit 2d6d954935
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}