diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-10-18 21:24:39 -0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2011-10-20 10:34:31 +0300 |
commit | 9aa246958bcd004471272369b71cb266aac91519 (patch) | |
tree | aed09a7700c6111dcd2e26756602ddc701e194bd /test | |
parent | b2cf7cf26b684fd8a87d3e25308bf174b1e45b51 (diff) |
Fix leak of dbus message
Diffstat (limited to 'test')
-rw-r--r-- | test/mpris-player.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/mpris-player.c b/test/mpris-player.c index 9e63b4b4c..29bea46be 100644 --- a/test/mpris-player.c +++ b/test/mpris-player.c @@ -122,6 +122,7 @@ static dbus_bool_t emit_property_changed(DBusConnection *conn, { DBusMessage *signal; DBusMessageIter iter; + dbus_bool_t result; signal = dbus_message_new_signal(path, interface, "PropertyChanged"); @@ -137,7 +138,10 @@ static dbus_bool_t emit_property_changed(DBusConnection *conn, append_variant(&iter, type, value); - return dbus_connection_send(conn, signal, NULL); + result = dbus_connection_send(conn, signal, NULL); + dbus_message_unref(signal); + + return result; } static int parse_property(DBusConnection *conn, const char *path, |