From ae4b865375b5d521f6c2e51815f7e1eb6f0a7638 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 5 Sep 2008 17:59:44 +0300 Subject: Move responsibility of freeint the record list to the correct place --- common/glib-helper.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common') 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); } -- cgit