summaryrefslogtreecommitdiffstats
path: root/common
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 /common
parentaae77a1c6509b768692915d5607d2b03c364d694 (diff)
Move responsibility of freeint the record list to the correct place
Diffstat (limited to 'common')
-rw-r--r--common/glib-helper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/glib-helper.c b/common/glib-helper.c
index 64641858..c194eb3b 100644
--- a/common/glib-helper.c
+++ b/common/glib-helper.c
@@ -157,6 +157,9 @@ done:
if (ctxt->cb)
ctxt->cb(recs, err, ctxt->user_data);
+ if (recs)
+ sdp_list_free(recs, (sdp_free_func_t) sdp_record_free);
+
search_context_cleanup(ctxt);
}