diff options
-rw-r--r-- | dbus/dbus-gobject.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dbus/dbus-gobject.c b/dbus/dbus-gobject.c index 0494c8a..fc6e247 100644 --- a/dbus/dbus-gobject.c +++ b/dbus/dbus-gobject.c @@ -1524,6 +1524,12 @@ gerror_to_dbus_error_message (const DBusGObjectInfo *object_info, g_free (error_name); } } + + /* this can only fail through a programming error in dbus-glib + * (@message is bad), or OOM */ + if (reply == NULL) + g_error ("dbus_message_new_error failed: out of memory?"); + return reply; } |