Fix crash issues 75/192975/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 13 Nov 2018 09:29:47 +0000 (18:29 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 13 Nov 2018 09:29:47 +0000 (18:29 +0900)
Change-Id: Ib65e1e0e5d0ee2bc51eecefc2bbcde9cf0d45051
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
client/autofill_auth.c
server/main.c
service_lib/autofill_service.c

index 011da2b..a04b2f2 100644 (file)
@@ -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;
index 5002159..8c8b0b0 100644 (file)
@@ -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();
index 94714d4..08e85c6 100644 (file)
@@ -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();