From: Jihoon Kim Date: Fri, 1 Oct 2021 11:41:45 +0000 (+0900) Subject: Fix memory leak reported by valgrind X-Git-Tag: accepted/tizen/unified/20211202.120743~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60a5413e8134f478955337ae139cba3679069b0f;p=platform%2Fcore%2Fuifw%2Fautofill-daemon.git Fix memory leak reported by valgrind Change-Id: I6a2e58dd5b73e084868b578c878d2c39559be0f3 Signed-off-by: Jihoon Kim --- diff --git a/src/autofill-daemon.c b/src/autofill-daemon.c index c9befae..ea5ce5a 100644 --- a/src/autofill-daemon.c +++ b/src/autofill-daemon.c @@ -948,31 +948,6 @@ void service_app_control(app_control_h app_control, void *data) return; } -static void -service_app_lang_changed(app_event_info_h event_info, void *user_data) -{ - /*APP_EVENT_LANGUAGE_CHANGED*/ - return; -} - -static void -service_app_region_changed(app_event_info_h event_info, void *user_data) -{ - /*APP_EVENT_REGION_FORMAT_CHANGED*/ -} - -static void -service_app_low_battery(app_event_info_h event_info, void *user_data) -{ - /*APP_EVENT_LOW_BATTERY*/ -} - -static void -service_app_low_memory(app_event_info_h event_info, void *user_data) -{ - /*APP_EVENT_LOW_MEMORY*/ -} - /** * Entry point for this application. */ @@ -982,16 +957,10 @@ int main(int argc, char *argv[]) char ad[50] = {0,}; service_app_lifecycle_callback_s event_callback; - app_event_handler_h handlers[5] = {NULL, }; event_callback.create = service_app_create; event_callback.terminate = service_app_terminate; event_callback.app_control = service_app_control; - service_app_add_event_handler(&handlers[APP_EVENT_LOW_BATTERY], APP_EVENT_LOW_BATTERY, service_app_low_battery, &ad); - service_app_add_event_handler(&handlers[APP_EVENT_LOW_MEMORY], APP_EVENT_LOW_MEMORY, service_app_low_memory, &ad); - service_app_add_event_handler(&handlers[APP_EVENT_LANGUAGE_CHANGED], APP_EVENT_LANGUAGE_CHANGED, service_app_lang_changed, &ad); - service_app_add_event_handler(&handlers[APP_EVENT_REGION_FORMAT_CHANGED], APP_EVENT_REGION_FORMAT_CHANGED, service_app_region_changed, &ad); - return service_app_main(argc, argv, &event_callback, ad); }