GVariant *arg_record = cal_dbus_utils_record_to_gvariant(record);
cal_dbus_call_insert_record_sync(cal_dbus_object, arg_handle, arg_record,
&id, &version, &ret, NULL, &error);
- g_variant_unref(arg_record);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_insert_record_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_record);
+ g_variant_unref(arg_handle);
return ret;
/* LCOV_EXCL_STOP */
}
GVariant *arg_record = cal_dbus_utils_record_to_gvariant(record);
cal_dbus_call_update_record_sync(cal_dbus_object, arg_handle, arg_record,
&version, &ret, NULL, &error);
- g_variant_unref(arg_record);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_update_record_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_record);
+ g_variant_unref(arg_handle);
return ret;
/* LCOV_EXCL_STOP */
}
GVariant *arg_handle = cal_dbus_utils_handle_to_gvariant(handle);
cal_dbus_call_delete_record_sync(cal_dbus_object, arg_handle, view_uri, id,
&version, &ret, NULL, &error);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_delete_record_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_handle);
return ret;
/* LCOV_EXCL_STOP */
}
GVariant *arg_record = cal_dbus_utils_record_to_gvariant(record);
cal_dbus_call_replace_record_sync(cal_dbus_object, arg_handle, arg_record, id,
&version, &ret, NULL, &error);
- g_variant_unref(arg_record);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_replace_record_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_record);
+ g_variant_unref(arg_handle);
return ret;
/* LCOV_EXCL_STOP */
}
GVariant *arg_ids = NULL;
cal_dbus_call_insert_records_sync(cal_dbus_object, arg_handle, arg_list,
&arg_ids, &count, &version, &ret, NULL, &error);
- g_variant_unref(arg_list);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_insert_records_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_list);
+ g_variant_unref(arg_handle);
+ g_variant_unref(arg_ids);
return ret;
/* LCOV_EXCL_STOP */
}
int *ids = NULL;
cal_dbus_utils_gvariant_to_ids(arg_ids, count, &ids);
- g_variant_unref(arg_ids);
if (out_ids)
*out_ids = ids;
GVariant *arg_list = cal_dbus_utils_list_to_gvariant(list);
cal_dbus_call_update_records_sync(cal_dbus_object, arg_handle, arg_list,
&version, &ret, NULL, &error);
- g_variant_unref(arg_list);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_update_records_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_list);
+ g_variant_unref(arg_handle);
return ret;
/* LCOV_EXCL_STOP */
}
GVariant *arg_ids = cal_dbus_utils_ids_to_gvariant(ids, count);
cal_dbus_call_delete_records_sync(cal_dbus_object, arg_handle, view_uri,
arg_ids, count, &version, &ret, NULL, &error);
- g_variant_unref(arg_ids);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_delete_records_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_ids);
+ g_variant_unref(arg_handle);
return ret;
/* LCOV_EXCL_STOP */
}
GVariant *arg_ids = cal_dbus_utils_ids_to_gvariant(ids, count);
cal_dbus_call_replace_records_sync(cal_dbus_object, arg_handle, arg_list,
arg_ids, count, &version, &ret, NULL, &error);
- g_variant_unref(arg_list);
- g_variant_unref(arg_ids);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_replace_records_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_list);
+ g_variant_unref(arg_ids);
+ g_variant_unref(arg_handle);
return ret;
/* LCOV_EXCL_STOP */
}
GVariant *arg_record = NULL;
cal_dbus_call_get_record_sync(cal_dbus_object, arg_handle, view_uri, id,
&arg_record, &ret, NULL, &error);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_get_record_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_handle);
+ g_variant_unref(arg_record);
return ret;
/* LCOV_EXCL_STOP */
}
cal_dbus_utils_gvariant_to_record(arg_record, out_record);
- g_variant_unref(arg_record);
return ret;
}
GVariant *arg_list = NULL;
cal_dbus_call_get_all_records_sync(cal_dbus_object, arg_handle, view_uri,
offset, limit, &arg_list, &ret, NULL, &error);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_get_all_records_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_handle);
+ g_variant_unref(arg_list);
return ret;
/* LCOV_EXCL_STOP */
}
cal_dbus_utils_gvariant_to_list(arg_list, out_list);
- g_variant_unref(arg_list);
if (*out_list)
calendar_list_first(*out_list);
GVariant *arg_list = NULL;
cal_dbus_call_get_records_with_query_sync(cal_dbus_object, arg_handle, arg_query,
offset, limit, &arg_list, &ret, NULL, &error);
- g_variant_unref(arg_query);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_get_records_with_query_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_query);
+ g_variant_unref(arg_handle);
+ g_variant_unref(arg_list);
return ret;
/* LCOV_EXCL_STOP */
}
cal_dbus_utils_gvariant_to_list(arg_list, out_list);
- g_variant_unref(arg_list);
if (*out_list)
calendar_list_first(*out_list);
GVariant *arg_handle = cal_dbus_utils_handle_to_gvariant(handle);
cal_dbus_call_get_count_sync(cal_dbus_object, arg_handle, view_uri,
&count, &ret, NULL, &error);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_get_count_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_handle);
return ret;
/* LCOV_EXCL_STOP */
}
GVariant *arg_query = cal_dbus_utils_query_to_gvariant(query);
cal_dbus_call_get_count_with_query_sync(cal_dbus_object, arg_handle, arg_query,
&count, &ret, NULL, &error);
- g_variant_unref(arg_query);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_get_count_with_query_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_query);
+ g_variant_unref(arg_handle);
return ret;
/* LCOV_EXCL_STOP */
}
GVariant *arg_handle = cal_dbus_utils_handle_to_gvariant(handle);
cal_dbus_call_get_current_version_sync(cal_dbus_object, arg_handle,
&version, &ret, NULL, &error);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_get_current_version_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_handle);
return ret;
/* LCOV_EXCL_STOP */
}
GVariant *arg_list = NULL;
cal_dbus_call_get_changes_by_version_sync(cal_dbus_object, arg_handle, view_uri,
book_id, in_version, &arg_list, out_version, &ret, NULL, &error);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_get_changes_by_version_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_handle);
+ g_variant_unref(arg_list);
return ret;
/* LCOV_EXCL_STOP */
}
cal_dbus_utils_gvariant_to_list(arg_list, out_list);
- g_variant_unref(arg_list);
if (*out_list)
calendar_list_first(*out_list);
GVariant *arg_list = NULL;
cal_dbus_call_get_changes_exception_by_version_sync(cal_dbus_object, arg_handle,
view_uri, original_id, version, &arg_list, &ret, NULL, &error);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_get_changes_exception_by_version_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_handle);
+ g_variant_unref(arg_list);
return ret;
/* LCOV_EXCL_STOP */
}
cal_client_handle_set_version(handle, version);
cal_dbus_utils_gvariant_to_list(arg_list, out_list);
- g_variant_unref(arg_list);
if (*out_list)
calendar_list_first(*out_list);
GVariant *arg_handle = cal_dbus_utils_handle_to_gvariant(handle);
cal_dbus_call_clean_after_sync_sync(cal_dbus_object, arg_handle, book_id, version,
&ret, NULL, &error);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_clean_after_sync_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_handle);
return ret;
/* LCOV_EXCL_STOP */
}
GVariant *arg_handle = cal_dbus_utils_handle_to_gvariant(handle);
cal_dbus_call_insert_vcalendars_sync(cal_dbus_object, arg_handle, stream,
&arg_ids, &count, &version, &ret, NULL, &error);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_insert_vcalendars_sync() Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_handle);
+ g_variant_unref(arg_ids);
return ret;
/* LCOV_EXCL_STOP */
}
int *ids = NULL;
cal_dbus_utils_gvariant_to_ids(arg_ids, count, &ids);
- g_variant_unref(arg_ids);
if (out_ids)
*out_ids = ids;
GVariant *arg_ids = cal_dbus_utils_ids_to_gvariant(ids, count);
cal_dbus_call_replace_vcalendars_sync(cal_dbus_object, arg_handle, stream,
arg_ids, count, &ret, &version, NULL, &error);
- g_variant_unref(arg_ids);
- g_variant_unref(arg_handle);
if (error) {
/* LCOV_EXCL_START */
ERR("cal_dbus_call_replace_vcalendars_sync Fail[%s]", error->message);
else
ret = CALENDAR_ERROR_IPC;
g_error_free(error);
+ g_variant_unref(arg_ids);
+ g_variant_unref(arg_handle);
return ret;
/* LCOV_EXCL_STOP */
}