summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-09-05 17:59:44 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-09-05 17:59:44 +0300
commitae4b865375b5d521f6c2e51815f7e1eb6f0a7638 (patch)
treecc2e917629fb50ddcebf19a013ca06cd3f67c453 /audio
parentaae77a1c6509b768692915d5607d2b03c364d694 (diff)
Move responsibility of freeint the record list to the correct place
Diffstat (limited to 'audio')
-rw-r--r--audio/headset.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/audio/headset.c b/audio/headset.c
index 5d7b2f81..87d0ee7b 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -1103,7 +1103,6 @@ static void get_record_cb(sdp_list_t *recs, int err, gpointer user_data)
}
sdp_list_free(classes, free);
- sdp_record_free(record);
return;
@@ -1116,8 +1115,6 @@ failed_not_supported:
failed:
if (classes)
sdp_list_free(classes, free);
- if (record)
- sdp_record_free(record);
pending_connect_finalize(dev);
headset_set_state(dev, HEADSET_STATE_DISCONNECTED);
}