"ecore_shutdown()" and other shutdown function has been called or not ,
after called "ecore_init()" successfully. So it modify every return case.
Change-Id: If980244432b29bf13904c0d5e0550c532377fbe4
switch (ch) {
case '?':
usage();
switch (ch) {
case '?':
usage();
break;
case 'v':
version();
break;
case 'v':
version();
break;
case 'n':
e_notification_app_name_set(n, optarg);
break;
case 'n':
e_notification_app_name_set(n, optarg);
break;
case 't':
if (!read_int_arg(&value, "-t", INT_MIN, INT_MAX))
break;
case 't':
if (!read_int_arg(&value, "-t", INT_MIN, INT_MAX))
else
e_notification_timeout_set(n, (int)value);
break;
case 'r':
if (!read_int_arg(&value, "-r", 0, UINT_MAX))
else
e_notification_timeout_set(n, (int)value);
break;
case 'r':
if (!read_int_arg(&value, "-r", 0, UINT_MAX))
- e_notification_replaces_id_set(n, (unsigned int)value);
+ e_notification_replaces_id_set(n, (unsigned int)value);
break;
case 'i':
e_notification_app_icon_set(n, optarg);
break;
case 'i':
e_notification_app_icon_set(n, optarg);
}
argc -= optind;
argv += optind;
}
argc -= optind;
argv += optind;
}
e_notification_summary_set(n, argv[0]);
}
e_notification_summary_set(n, argv[0]);
else
e_notification_send(n, NULL, NULL);
else
e_notification_send(n, NULL, NULL);
e_notification_unref(n);
e_notification_shutdown();
ecore_shutdown();
eina_shutdown();
return EXIT_SUCCESS;
e_notification_unref(n);
e_notification_shutdown();
ecore_shutdown();
eina_shutdown();
return EXIT_SUCCESS;
+
+exit_failure:
+ e_notification_unref(n);
+ e_notification_shutdown();
+ ecore_shutdown();
+ eina_shutdown();
+
+ return EXIT_FAILURE;