g_clear_error(&g_error);
}
result = BLUETOOTH_ERROR_INTERNAL;
- } else {
- g_variant_unref(reply);
}
+ g_variant_unref(reply);
func_data = user_data;
if (func_data == NULL) {
g_clear_error(&g_error);
}
result = BLUETOOTH_ERROR_INTERNAL;
- } else {
- g_variant_unref(reply);
}
+ g_variant_unref(reply);
func_data = user_data;
if (func_data == NULL) {
g_variant_unref(result);
retv_if(profile_proxy == NULL, BLUETOOTH_ERROR_INTERNAL);
func_data = g_malloc0(sizeof(bt_function_data_t));
+ retv_if(func_data == NULL, BLUETOOTH_ERROR_MEMORY_ALLOCATION);
+
func_data->address = g_strdup(address);
func_data->req_id = request_id;
g_variant_unref(result);
retv_if(profile_proxy == NULL, BLUETOOTH_ERROR_INTERNAL);
func_data = g_malloc0(sizeof(bt_function_data_t));
+ retv_if(func_data == NULL, BLUETOOTH_ERROR_MEMORY_ALLOCATION);
+
func_data->address = g_strdup(address);
func_data->req_id = request_id;