From: Jihoon Kim Date: Tue, 13 Nov 2018 09:29:47 +0000 (+0900) Subject: Fix crash issues X-Git-Tag: accepted/tizen/unified/20181113.163511~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F75%2F192975%2F1;p=platform%2Fcore%2Fuifw%2Fautofill.git Fix crash issues Change-Id: Ib65e1e0e5d0ee2bc51eecefc2bbcde9cf0d45051 Signed-off-by: Jihoon Kim --- 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();