From 4668e0e3874ffa0adc7128bccdaea72cc4f09cc3 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 13 Nov 2018 18:29:47 +0900 Subject: [PATCH] Fix crash issues Change-Id: Ib65e1e0e5d0ee2bc51eecefc2bbcde9cf0d45051 Signed-off-by: Jihoon Kim --- client/autofill_auth.c | 7 ++++--- server/main.c | 1 + service_lib/autofill_service.c | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/client/autofill_auth.c b/client/autofill_auth.c index 011da2b..a04b2f2 100644 --- a/client/autofill_auth.c +++ b/client/autofill_auth.c @@ -36,8 +36,6 @@ void *g_autofill_auth_info_data = NULL; // Request autofill auth info EXPORT_API int autofill_auth_info_request(autofill_view_info_h vi) { - LOGD("app id : %s, view id : %s", vi->app_id, vi->view_id); - int ret = AUTOFILL_ERROR_NONE; rpc_port_autofill_view_info_h vih; char *id; @@ -55,8 +53,11 @@ EXPORT_API int autofill_auth_info_request(autofill_view_info_h vi) return AUTOFILL_ERROR_NOT_INITIALIZED; } + LOGD("app id : %s, view id : %s", vi->app_id, vi->view_id); + rpc_port_autofill_view_info_create(&vih); - rpc_port_autofill_view_info_set_view_id(vih, vi->view_id); + if (vi->view_id) + rpc_port_autofill_view_info_set_view_id(vih, vi->view_id); Eina_List *l; autofill_item_h it; diff --git a/server/main.c b/server/main.c index 5002159..8c8b0b0 100644 --- a/server/main.c +++ b/server/main.c @@ -629,6 +629,7 @@ void service_app_terminate(void *data) if (__client_list) { g_list_free_full(__client_list, __destroy_client); + __client_list = NULL; } rpc_port_stub_AutofillAppPort_unregister(); diff --git a/service_lib/autofill_service.c b/service_lib/autofill_service.c index 94714d4..08e85c6 100644 --- a/service_lib/autofill_service.c +++ b/service_lib/autofill_service.c @@ -402,6 +402,7 @@ EXPORT_API int autofill_service_deinitialize(void) if (__client_list) { g_list_free_full(__client_list, __destroy_client); + __client_list = NULL; } rpc_port_stub_AutofillSvcPort_unregister(); -- 2.7.4