From 68d6de41313330ec7641f8680cf6f94556945b0b Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Thu, 6 Feb 2020 10:10:43 +0100 Subject: [PATCH] fixup init shutdown --- src/bin/exactness/exactness.c | 4 ---- src/bin/exactness/injector.c | 8 ++------ src/bin/exactness/inspect.c | 4 ---- src/bin/exactness/player.c | 16 +++------------- src/bin/exactness/recorder.c | 14 +++----------- 5 files changed, 8 insertions(+), 38 deletions(-) diff --git a/src/bin/exactness/exactness.c b/src/bin/exactness/exactness.c index f4c4e52498..47aa4389c7 100644 --- a/src/bin/exactness/exactness.c +++ b/src/bin/exactness/exactness.c @@ -488,9 +488,7 @@ main(int argc, char *argv[]) ECORE_GETOPT_VALUE_NONE }; - ecore_init(); ecore_evas_init(); - evas_init(); _dest_dir = "./"; _scan_objs = scan_objs; @@ -667,9 +665,7 @@ main(int argc, char *argv[]) _list_file_free(test_list); end: - evas_shutdown(); ecore_evas_shutdown(); - ecore_shutdown(); return ret; } diff --git a/src/bin/exactness/injector.c b/src/bin/exactness/injector.c index 2eb82d7bfe..8b73ff5270 100644 --- a/src/bin/exactness/injector.c +++ b/src/bin/exactness/injector.c @@ -434,9 +434,7 @@ int main(int argc, char **argv) ECORE_GETOPT_VALUE_NONE }; - eina_init(); - eet_init(); - ecore_init(); + ecore_evas_init(); opt_args = ecore_getopt_parse(&optdesc, values, argc, argv); if (opt_args < 0) @@ -464,8 +462,6 @@ int main(int argc, char **argv) real__ = efl_loop_exit_code_process(ret__); elm_shutdown(); end: - ecore_shutdown(); - eet_shutdown(); - eina_shutdown(); + ecore_evas_shutdown(); return real__; } diff --git a/src/bin/exactness/inspect.c b/src/bin/exactness/inspect.c index 1f06f50795..acc66e1dc9 100644 --- a/src/bin/exactness/inspect.c +++ b/src/bin/exactness/inspect.c @@ -1289,8 +1289,6 @@ main(int argc, char *argv[]) }; ecore_evas_init(); - ecore_init(); - eet_init(); elm_init(0, NULL); want_quit = EINA_FALSE; @@ -1641,8 +1639,6 @@ main(int argc, char *argv[]) end: elm_shutdown(); - eet_shutdown(); - ecore_shutdown(); ecore_evas_shutdown(); return ret; diff --git a/src/bin/exactness/player.c b/src/bin/exactness/player.c index e338c0cba8..4ff19ed8dc 100644 --- a/src/bin/exactness/player.c +++ b/src/bin/exactness/player.c @@ -1126,9 +1126,7 @@ int main(int argc, char **argv) ECORE_GETOPT_VALUE_NONE }; - eina_init(); - eet_init(); - ecore_init(); + ecore_evas_init(); opt_args = ecore_getopt_parse(&optdesc, values, argc, argv); if (opt_args < 0) @@ -1280,8 +1278,6 @@ int main(int argc, char **argv) setenv("FONTCONFIG_FILE", fonts_conf_name, 1); } } - efl_object_init(); - evas_init(); if (argv[opt_args]) { @@ -1333,7 +1329,7 @@ int main(int argc, char **argv) if (!f_output) { fprintf(stderr, "no program specified\nUse -h for more information\n"); - goto cleanup; + goto end; } argv[0] = strdup(f_output); } @@ -1357,13 +1353,7 @@ 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(); + ecore_evas_shutdown(); return pret; } diff --git a/src/bin/exactness/recorder.c b/src/bin/exactness/recorder.c index 3023deffe8..5b529b5b8c 100644 --- a/src/bin/exactness/recorder.c +++ b/src/bin/exactness/recorder.c @@ -391,8 +391,7 @@ int main(int argc, char **argv) ECORE_GETOPT_VALUE_NONE }; - eina_init(); - ecore_init(); + ecore_evas_init(); opt_args = ecore_getopt_parse(&optdesc, values, argc, argv); if (opt_args < 0) @@ -455,9 +454,6 @@ int main(int argc, char **argv) goto end; } - efl_object_init(); - evas_init(); - if (!_unit) { _unit = calloc(1, sizeof(*_unit)); @@ -469,7 +465,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 cleanup; + goto end; } Eina_List *dated_fonts = ecore_file_ls(fonts_dir); char *date_dir; @@ -519,11 +515,7 @@ int main(int argc, char **argv) pret = 0; -cleanup: - efl_object_shutdown(); - evas_shutdown(); end: - ecore_shutdown(); - eina_shutdown(); + ecore_evas_shutdown(); return pret; }