summaryrefslogtreecommitdiff
path: root/dbus
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-08-17 19:11:14 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-08-17 19:18:27 +0100
commit6293849bf0469ce8d6d122b38db5091c21304a30 (patch)
tree2961825179da79c56d30d727433c296d0be69aef /dbus
parent8ec3166b6a40508a91144efedc10dcb32964498e (diff)
dbus-gobject: check for NULL when producing messages
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=35766 Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk> Conflicts: dbus/dbus-gobject.c
Diffstat (limited to 'dbus')
-rw-r--r--dbus/dbus-gobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbus/dbus-gobject.c b/dbus/dbus-gobject.c
index 29264a8..ef6e981 100644
--- a/dbus/dbus-gobject.c
+++ b/dbus/dbus-gobject.c
@@ -1651,7 +1651,7 @@ invoke_object_method (GObject *object,
{
g_free (in_signature);
g_array_free (types_array, TRUE);
- reply = dbus_message_new_error (message, "org.freedesktop.DBus.GLib.ErrorError", error->message);
+ reply = error_or_die (message, "org.freedesktop.DBus.GLib.ErrorError", error->message);
dbus_connection_send (connection, reply, NULL);
dbus_message_unref (reply);
g_error_free (error);
@@ -3021,7 +3021,7 @@ dbus_g_method_get_reply (DBusGMethodInvocation *context)
{
g_return_val_if_fail (context != NULL, NULL);
- return dbus_message_new_method_return (dbus_g_message_get_message (context->message));
+ return reply_or_die (dbus_g_message_get_message (context->message));
}
/**
@@ -3073,7 +3073,7 @@ dbus_g_method_return (DBusGMethodInvocation *context, ...)
if (!context->send_reply)
goto out;
- reply = dbus_message_new_method_return (dbus_g_message_get_message (context->message));
+ reply = dbus_g_method_get_reply (context);
out_sig = method_output_signature_from_object_info (context->object, context->method);
argsig = _dbus_gtypes_from_arg_signature (out_sig, FALSE);