Fix init checks so that there is no more seg fault.

All that stuff should be cleaned, though.


SVN revision: 45780
This commit is contained in:
Vincent Torri 2010-02-01 17:26:25 +00:00
parent 921587e70b
commit e2fe3d0f59
2 changed files with 7 additions and 5 deletions

View File

@ -196,7 +196,8 @@ main(int argc, char **argv)
exit(-1);
}
edje_init();
if (!edje_init())
exit(-1);
edje_file = mem_alloc(SZ(Edje_File));
edje_file->compiler = strdup("edje_cc");

View File

@ -58,7 +58,8 @@ main(int argc, char **argv)
int i;
setlocale(LC_NUMERIC, "C");
eina_init();
if (!eina_init())
exit(-1);
_edje_cc_log_dom = eina_log_domain_register("edje_decc", EDJE_CC_DEFAULT_LOG_COLOR);
if(_edje_cc_log_dom < 0)
{
@ -89,15 +90,15 @@ main(int argc, char **argv)
exit(-1);
}
edje_init();
eet_init();
if (!edje_init())
exit(-1);
source_edd();
if (!decomp()) return -1;
output();
eet_close(ef);
eet_shutdown();
edje_shutdown();
eina_log_domain_unregister(_edje_cc_log_dom);
_edje_cc_log_dom = -1;
eina_shutdown();