g_error_free(err);
}
+ g_object_unref(msg);
return reply;
}
}
g_variant_builder_unref(builder);
+ g_object_unref(msg);
return reply;
}
if (!reply)
return ret_list;
+ auto reply_ptr = std::unique_ptr<GDBusMessage, decltype(g_object_unref)*>(
+ reply, g_object_unref);
+
GError* err = nullptr;
if (g_dbus_message_to_gerror(reply, &err)) {
LOGE("Request got error %s", err->message);
if (!reply)
return 0;
+ auto reply_ptr = std::unique_ptr<GDBusMessage, decltype(g_object_unref)*>(
+ reply, g_object_unref);
+
GError* err = nullptr;
if (g_dbus_message_to_gerror(reply, &err)) {
LOGE("RequestNumber got error %s", err->message);