gdbus: Fix leak in g_dbus_message_print()

This leak only happens when using G_DBUS_DEBUG=message or similar, but
it's nicer to be valgrind-clean even in these cases.

https://bugzilla.gnome.org/show_bug.cgi?id=736810
This commit is contained in:
Christophe Fergeau 2014-09-17 17:00:03 +02:00 committed by Colin Walters
parent 59a996db9b
commit a4012abbdf

View File

@ -3444,6 +3444,7 @@ g_dbus_message_print (GDBusMessage *message,
{
g_string_append_printf (str, "%*s (none)\n", indent, "");
}
g_list_free (keys);
g_string_append_printf (str, "%*sBody: ", indent, "");
if (message->body != NULL)
{