g_variant_unref(call_result);
}
+ g_variant_builder_unref(builder_property);
return ret;
}
g_variant_builder_unref(builder);
free(imsi);
+ g_variant_unref(in_parameters);
return;
}
for (size_t j = 0; j < private_service_adaptor_set_auth_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
g_dbus_method_invocation_return_value(invocation, g_variant_new("(ts)", (uint64_t) ret_code, ret_msg));
SERVICE_ADAPTOR_API_TIME_CHECK_PAUSE();
g_variant_unref(req_info_struct[j]);
}
}
+ g_variant_unref(req_info_entry_v);
(*contact_req)->cts[i] = contact_info_req;
}
}
(*profile_req)->evnt[i] = ipc_g_variant_dup_string(evnt_info_struct);
g_variant_unref(evnt_info_struct);
+ g_variant_unref(evnt_info_entry_v);
}
}
idx++;
(*profile_req)->adrs[i] = ipc_g_variant_dup_string(adrs_info_struct);
g_variant_unref(adrs_info_struct);
+ g_variant_unref(adrs_info_entry_v);
}
}
idx++;
(*profile_req)->mail[i] = ipc_g_variant_dup_string(mail_info_struct);
g_variant_unref(mail_info_struct);
+ g_variant_unref(mail_info_entry_v);
}
}
idx++;
for (size_t j = 0; j < private_service_adaptor_essential_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
FUNC_END();
}
if (NULL != (*req_imgs)[i]) {
GVariant *path_info_struct;
GVariant *path_info_entry_v = g_variant_get_child_value(req_struct[idx], i);
+
path_info_struct = g_variant_get_child_value(path_info_entry_v, 0);
(*req_imgs)[i]->req_type = g_variant_get_int32(path_info_struct);
+ g_variant_unref(path_info_struct);
path_info_struct = g_variant_get_child_value(path_info_entry_v, 1);
(*req_imgs)[i]->no = g_variant_get_int32(path_info_struct);
+ g_variant_unref(path_info_struct);
path_info_struct = g_variant_get_child_value(path_info_entry_v, 2);
(*req_imgs)[i]->img = ipc_g_variant_dup_string(path_info_struct);
-
g_variant_unref(path_info_struct);
+
+ g_variant_unref(path_info_entry_v);
}
}
idx++;
contact_adaptor_destroy_error_code(&error_code);
service_adaptor_debug("Re-try API");
- ret_code = contact_adaptor_set_contact_list(plugin, service->contact_context, contact_req, NULL, &contact_res, &error_code, NULL);
+ contact_adaptor_set_contact_list(plugin, service->contact_context, contact_req, NULL, &contact_res, &error_code, NULL);
}
}
contact_adaptor_destroy_error_code(&error_code);
service_adaptor_debug("Re-try API");
- ret_code = contact_adaptor_get_contact_infos_latest(plugin, service->contact_context, NULL, NULL, &contact_res, &error_code, NULL);
+ contact_adaptor_get_contact_infos_latest(plugin, service->contact_context, NULL, NULL, &contact_res, &error_code, NULL);
}
}
contact_adaptor_destroy_error_code(&error_code);
service_adaptor_debug("Re-try API");
- ret_code = contact_adaptor_get_contact_infos_polling(plugin, service->contact_context, contact_req, NULL, &contact_res, &error_code, NULL);
+ contact_adaptor_get_contact_infos_polling(plugin, service->contact_context, contact_req, NULL, &contact_res, &error_code, NULL);
}
}
contact_adaptor_destroy_error_code(&error_code);
service_adaptor_debug("Re-try API");
- ret_code = contact_adaptor_set_me_profile_with_push(plugin, service->contact_context, profile_req, NULL, &profile_res, &error_code, NULL);
+ contact_adaptor_set_me_profile_with_push(plugin, service->contact_context, profile_req, NULL, &profile_res, &error_code, NULL);
}
}
contact_adaptor_destroy_error_code(&error_code);
service_adaptor_debug("Re-try API");
- ret_code = contact_adaptor_get_profile(plugin, service->contact_context, profile_req, NULL, &profile_res, &error_code, NULL);
+ contact_adaptor_get_profile(plugin, service->contact_context, profile_req, NULL, &profile_res, &error_code, NULL);
}
}
storage_adaptor_destroy_error_code(&storage_error_code);
service_adaptor_debug("Re-try API");
- ret_code = storage_adaptor_upload_file_sync(storage_plugin, service->storage_context,
+ storage_adaptor_upload_file_sync(storage_plugin, service->storage_context,
parent_folder, file_name, req_imgs[i]->img, true, NULL, &file_info, &storage_error_code, NULL);
}
contact_adaptor_destroy_error_code(&contact_error_code);
service_adaptor_debug("Re-try API");
- ret_code = contact_adaptor_set_me_profile_image_meta_with_push(contact_plugin,
+ contact_adaptor_set_me_profile_image_meta_with_push(contact_plugin,
service->contact_context, tmp_imgs, tmp_imgs_len, NULL, &contact_error_code, NULL);
}
contact_adaptor_destroy_error_code(&error_code);
service_adaptor_debug("Re-try API");
- ret_code = contact_adaptor_delete_me_profile_image_meta_with_push(plugin, service->contact_context, NULL, &error_code, NULL);
+ contact_adaptor_delete_me_profile_image_meta_with_push(plugin, service->contact_context, NULL, &error_code, NULL);
}
}
contact_adaptor_destroy_error_code(&error_code);
service_adaptor_debug("Re-try API");
- ret_code = contact_adaptor_set_me_profile_privacy(plugin, service->contact_context, privacy_req, NULL, &privacy_res, &error_code, NULL);
+ contact_adaptor_set_me_profile_privacy(plugin, service->contact_context, privacy_req, NULL, &privacy_res, &error_code, NULL);
}
}
contact_adaptor_destroy_privacy_res_s(privacy_res);
free(service_name);
+ g_variant_unref(in_parameters);
return;
}
contact_adaptor_destroy_error_code(&error_code);
service_adaptor_debug("Re-try API");
- ret_code = contact_adaptor_get_me_profile_privacy(plugin, service->contact_context, NULL, NULL, &privacy_res, &error_code, NULL);
+ contact_adaptor_get_me_profile_privacy(plugin, service->contact_context, NULL, NULL, &privacy_res, &error_code, NULL);
}
}
contact_adaptor_destroy_error_code(&error_code);
service_adaptor_debug("Re-try API");
- ret_code = contact_adaptor_set_me_presence_with_push(plugin, service->contact_context, presence_req, NULL, &presence_res, &error_code, NULL);
+ contact_adaptor_set_me_presence_with_push(plugin, service->contact_context, presence_req, NULL, &presence_res, &error_code, NULL);
}
}
contact_adaptor_destroy_error_code(&error_code);
service_adaptor_debug("Re-try API");
- ret_code = contact_adaptor_set_me_presence_on_off_with_push(plugin, service->contact_context, presence_req, NULL, &presence_res, &error_code, NULL);
+ contact_adaptor_set_me_presence_on_off_with_push(plugin, service->contact_context, presence_req, NULL, &presence_res, &error_code, NULL);
}
}
contact_adaptor_destroy_error_code(&error_code);
service_adaptor_debug("Re-try API");
- ret_code = contact_adaptor_set_me_profile_type(plugin, service->contact_context, type, NULL, &url, &error_code, NULL);
+ contact_adaptor_set_me_profile_type(plugin, service->contact_context, type, NULL, &url, &error_code, NULL);
}
}
info_struct = g_variant_get_child_value(info_entry_v, 0);
(*receivers)[i] = g_variant_get_int64(info_struct);
+ g_variant_unref(info_struct);
+ g_variant_unref(info_entry_v);
}
idx++;
*receivers_len = g_variant_get_uint32(req_struct[idx++]);
for (size_t j = 0; j < private_service_adaptor_create_chatroom_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_change_chatroom_meta_req_type(GVariant *parameters,
for (size_t j = 0; j < private_service_adaptor_change_chatroom_meta_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_chat_req_type(GVariant *parameters,
for (size_t j = 0; j < private_service_adaptor_chat_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_allow_chat_req_type(GVariant *parameters,
for (size_t j = 0; j < private_service_adaptor_allow_chat_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_all_unread_message_req_type(GVariant *parameters,
for (size_t j = 0; j < private_service_adaptor_all_unread_message_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_forward_online_message_res_type(GVariant *parameters,
for (size_t j = 0; j < private_service_adaptor_forward_online_message_res_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_forward_unread_message_res_type(GVariant *parameters,
for (size_t j = 0; j < private_service_adaptor_forward_unread_message_res_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_read_message_req_type(GVariant *parameters,
for (size_t j = 0; j < private_service_adaptor_read_message_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_invite_chat_req_type(GVariant *parameters,
for (size_t j = 0; j < private_service_adaptor_invite_chat_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_end_chat_req_type(GVariant *parameters,
for (size_t j = 0; j < private_service_adaptor_end_chat_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_unseal_message_req_type(GVariant *parameters,
for (size_t j = 0; j < private_service_adaptor_unseal_message_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_save_call_log_req_type(GVariant *parameters,
for (size_t j = 0; j < private_service_adaptor_save_call_log_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_current_time_req_type(GVariant *parameters,
for (size_t j = 0; j < private_service_adaptor_current_time_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_get_connection_policy_req_type(GVariant *parameters,
for (size_t j = 0; j < private_service_adaptor_get_connection_policy_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_set_connection_policy_req_type(GVariant *parameters,
for (size_t j = 0; j < private_service_adaptor_set_connection_policy_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
for (size_t j = 0; j < private_service_adaptor_chat_id_list_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_msisdn_list_req_type(GVariant *parameters,
(*chat_ids)[i] = g_variant_get_int64(info_struct);
g_variant_unref(info_struct);
+ g_variant_unref(info_entry_v);
}
idx++;
for (size_t j = 0; j < private_service_adaptor_msisdn_list_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
GVariant *__create_chat_id_list_res_type(message_adaptor_chat_id_s **chat_ids,
}
}
free(chat_msgs);
+ chat_msgs = NULL;
}
+ if (chat_msgs != NULL)
+ free(chat_msgs);
return;
}
}
}
free(chat_msgs);
+ chat_msgs = NULL;
}
+ if (NULL != chat_msgs)
+ free(chat_msgs);
} else if (0 == g_strcmp0(method_name, PRIVATE_DBUS_REQUEST_ALLOW_CHAT_METHOD)) {
char *service_name = NULL;
int64_t request_id = 0;
free(end_chats[i]);
}
free(end_chats);
+ end_chats = NULL;
}
+ if (end_chats != NULL)
+ free(end_chats);
return;
}
free(end_chats[i]);
}
free(end_chats);
+ end_chats = NULL;
}
+ if (NULL != end_chats)
+ free(end_chats);
} else if (0 == g_strcmp0(method_name, PRIVATE_DBUS_REQUEST_UNSEAL_MESSAGE_METHOD)) {
char *service_name = NULL;
int64_t request_id = 0;
unsigned int phone_number_len = 0;
message_adaptor_chat_id_s **chat_ids = NULL;
unsigned int chat_ids_len = 0;
- void *user_data = NULL;
void *server_data = NULL;
message_adaptor_error_code_t *error_code = NULL;
message_adaptor_error_code_t _error;
}
}
free(phone_number);
+ phone_number = NULL;
}
+ if (phone_number != NULL)
+ free(phone_number);
return;
}
}
}
free(phone_number);
+ phone_number = NULL;
}
+ if (NULL != phone_number)
+ free(phone_number);
+
if ((NULL != chat_ids) && (0U < chat_ids_len)) {
for (int ci = 0; ci < chat_ids_len; ci++) {
if (NULL != chat_ids[ci]) {
}
}
free(chat_ids);
+ chat_ids = NULL;
}
+ if (NULL != chat_ids)
+ free(chat_ids);
} else if (0 == g_strcmp0(method_name, PRIVATE_DBUS_GET_MSISDN_LIST_METHOD)) {
char *service_name = NULL;
int64_t *chat_ids = NULL;
unsigned int chat_ids_len = 0;
message_adaptor_chat_id_s **msisdns = NULL;
unsigned int msisdns_len = 0;
- void *user_data = NULL;
void *server_data = NULL;
message_adaptor_error_code_t *error_code = NULL;
message_adaptor_error_code_t _error;
g_variant_builder_unref(builder_disabled);
g_variant_builder_unref(builder_existing);
g_variant_builder_unref(builder_did_violation_users);
+ g_variant_builder_unref(builder_invitation);
return response;
}
g_variant_builder_unref(builder_disabled);
g_variant_builder_unref(builder_existing);
g_variant_builder_unref(builder_did_violation_users);
+ g_variant_builder_unref(builder_invitation);
return response;
}
free(err);
free(service_file_name);
+ g_variant_unref(in_parameters);
service_adaptor_debug("[End] Push deregister");
}
/*
shop_adaptor_shop_info_s info;
shop_adaptor_shop_item_s **items = NULL;
unsigned int items_len = 0;
- void *user_data = NULL;
void *server_data = NULL;
shop_adaptor_error_code_t *error_code = NULL;
shop_adaptor_error_code_t _error;
for (size_t j = 0; j < service_adaptor_file_transfer_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_download_thumbnail_req_type(GVariant *parameters,
for (size_t j = 0; j < service_adaptor_download_thumbnail_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
/* private feature */
for (size_t j = 0; j < private_service_adaptor_file_status_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
GVariant *__private_create_file_status_res_type(int64_t progress_size,
for (size_t j = 0; j < private_service_adaptor_privilege_check_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
/* public feature */
for (size_t j = 0; j < service_adaptor_get_root_folder_path_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_make_directory_req_type(GVariant *parameters,
for (size_t j = 0; j < service_adaptor_make_directory_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_remove_file_req_type(GVariant *parameters,
for (size_t j = 0; j < service_adaptor_remove_file_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_remove_directory_req_type(GVariant *parameters,
for (size_t j = 0; j < service_adaptor_remove_directory_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_move_file_req_type(GVariant *parameters,
for (size_t j = 0; j < service_adaptor_move_file_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_move_directory_req_type(GVariant *parameters,
for (size_t j = 0; j < service_adaptor_move_directory_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_get_file_list_req_type(GVariant *parameters,
for (size_t j = 0; j < service_adaptor_get_file_list_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_open_upload_file_req_type(GVariant *parameters,
for (size_t j = 0; j < service_adaptor_open_upload_file_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_open_download_file_req_type(GVariant *parameters,
for (size_t j = 0; j < service_adaptor_open_download_file_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_open_download_thumbnail_req_type(GVariant *parameters,
for (size_t j = 0; j < service_adaptor_open_download_thumbnail_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_close_file_req_type(GVariant *parameters,
for (size_t j = 0; j < service_adaptor_close_file_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_start_upload_file_req_type(GVariant *parameters,
for (size_t j = 0; j < service_adaptor_start_upload_file_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
for (size_t j = 0; j < service_adaptor_start_download_file_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
for (size_t j = 0; j < service_adaptor_start_download_thumbnail_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
void __get_cancel_file_task_req_type(GVariant *parameters,
for (size_t j = 0; j < service_adaptor_cancel_file_task_req_s_type_length; j++) {
g_variant_unref(req_struct[j]);
}
+ g_variant_unref(in_parameters);
}
GVariant *__create_file_descriptor_res_type(long long int file_uid,
storage_adaptor_destroy_error_code(&error_code);
service_adaptor_debug("Re-try API");
- ret_code = storage_adaptor_get_transfer_state(plugin, service->storage_context,
+ storage_adaptor_get_transfer_state(plugin, service->storage_context,
(void *) fd, NULL, &state, &error_code, NULL);
}
ret_code = storage_adaptor_get_transfer_progress(plugin, service->storage_context,
g_main_loop_unref(loop);
service_adaptor_h service_adaptor = service_adaptor_get_handle();
- service_adaptor_deinit(service_adaptor);
+ service_adaptor_deinit();
return ret;
}