diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-02-15 19:49:03 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-02-15 19:49:03 +0000 |
commit | 661d9a5e7017bf6a79b62ff5d22d8eaec5fac7c6 (patch) | |
tree | b3c6abf7f8a871c934ccb648829f5deb687223eb | |
parent | d6964e5a5b4f0f3b5bc859b11a1352a06e313ecd (diff) |
Add missing calls to dbus_pending_call_unref
-rw-r--r-- | audio/headset.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/audio/headset.c b/audio/headset.c index da4350ce..0956208a 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -995,6 +995,7 @@ static void get_record_reply(DBusPendingCall *call, void *data) sdp_record_free(record); dbus_message_unref(reply); + dbus_pending_call_unref(call); return; @@ -1003,6 +1004,7 @@ failed: sdp_record_free(record); if (reply) dbus_message_unref(reply); + dbus_pending_call_unref(call); pending_connect_free(hs->pending_connect); hs->pending_connect = NULL; hs->state = HEADSET_STATE_DISCONNECTED; @@ -1138,8 +1140,8 @@ static void get_handles_reply(DBusPendingCall *call, void *data) dbus_pending_call_set_notify(pending, get_record_reply, hs, NULL); dbus_message_unref(msg); - dbus_message_unref(reply); + dbus_pending_call_unref(call); return; @@ -1147,6 +1149,7 @@ failed: if (msg) dbus_message_unref(msg); dbus_message_unref(reply); + dbus_pending_call_unref(call); hs_disconnect(hs, NULL); } |