loopback test: unref messages after use
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 22 Feb 2011 16:31:02 +0000 (16:31 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 10 Jun 2011 17:31:46 +0000 (18:31 +0100)
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570

test/loopback.c

index 0567edb..0c5cd1a 100644 (file)
@@ -152,6 +152,10 @@ test_message (Fixture *f,
   g_assert_cmpstr (dbus_message_get_signature (incoming), ==, "");
   g_assert_cmpstr (dbus_message_get_path (incoming), ==, "/com/example/Hello");
   g_assert_cmpuint (dbus_message_get_serial (incoming), ==, serial);
+
+  dbus_message_unref (incoming);
+
+  dbus_message_unref (outgoing);
 }
 
 static void