summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-05-12 12:41:05 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-10-21 12:37:45 +0100
commit15afdc4c10720c31a4142db66845e806244310a8 (patch)
tree408699dcdb35eae1d43810418b312121d2b797c7
parentf210a9025fb17b91902b3815411f26eaad4597e7 (diff)
downloaddbus-glib-15afdc4c10720c31a4142db66845e806244310a8.tar.gz
30574 test: don't leak two messages and a pending call per run
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
-rw-r--r--test/core/30574.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/core/30574.c b/test/core/30574.c
index 3cbe1b5..48ec7d7 100644
--- a/test/core/30574.c
+++ b/test/core/30574.c
@@ -44,6 +44,7 @@ send_and_allow_reentry (DBusConnection * bus, DBusMessage * message)
g_main_loop_run (closure.loop);
g_main_loop_unref (closure.loop);
+ dbus_pending_call_unref (pending);
return closure.reply;
}
@@ -93,6 +94,8 @@ main(int argc, const char *argv[])
fprintf(stderr, "Sorry; can't communicate: %s\n", error.message);
exit(1);
}
+ dbus_message_unref (reply);
+ dbus_message_unref (message);
return 0;
}