forked from enlightenment/efl
exactness: fix shutdown handling of efl components in various binaries
The shutdown handling for efl libraries was a bit sloppy in the exactness binaries. Make sure we shutdown what we init.
This commit is contained in:
parent
c93f4e8437
commit
3d5de5976e
|
@ -464,8 +464,8 @@ int main(int argc, char **argv)
|
|||
real__ = efl_loop_exit_code_process(ret__);
|
||||
elm_shutdown();
|
||||
end:
|
||||
ecore_shutdown();
|
||||
eet_shutdown();
|
||||
eina_shutdown();
|
||||
return real__;
|
||||
}
|
||||
|
||||
|
|
|
@ -1333,7 +1333,7 @@ int main(int argc, char **argv)
|
|||
if (!f_output)
|
||||
{
|
||||
fprintf(stderr, "no program specified\nUse -h for more information\n");
|
||||
goto end;
|
||||
goto cleanup;
|
||||
}
|
||||
argv[0] = strdup(f_output);
|
||||
}
|
||||
|
@ -1357,7 +1357,12 @@ int main(int argc, char **argv)
|
|||
exactness_unit_file_write(_dest_unit, _dest);
|
||||
}
|
||||
|
||||
cleanup:
|
||||
evas_shutdown();
|
||||
efl_object_shutdown();
|
||||
|
||||
end:
|
||||
ecore_shutdown();
|
||||
eet_shutdown();
|
||||
eina_shutdown();
|
||||
return pret;
|
||||
|
|
|
@ -467,7 +467,7 @@ int main(int argc, char **argv)
|
|||
if (!ecore_file_exists(fonts_dir))
|
||||
{
|
||||
fprintf(stderr, "Unable to find fonts directory %s\n", fonts_dir);
|
||||
goto end;
|
||||
goto cleanup;
|
||||
}
|
||||
Eina_List *dated_fonts = ecore_file_ls(fonts_dir);
|
||||
char *date_dir;
|
||||
|
@ -516,7 +516,12 @@ int main(int argc, char **argv)
|
|||
//_events_list = NULL;
|
||||
|
||||
pret = 0;
|
||||
|
||||
cleanup:
|
||||
efl_object_shutdown();
|
||||
evas_shutdown();
|
||||
end:
|
||||
ecore_shutdown();
|
||||
eina_shutdown();
|
||||
return pret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue