summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/headset.c')
-rw-r--r--audio/headset.c5
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);
}