From cb5898ff72875b9c24d7fc44cddb005f4495dff3 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 21 May 2007 15:13:50 +0000 Subject: Fix SDP pattern extraction for XML --- common/sdp-glib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/sdp-glib.c') diff --git a/common/sdp-glib.c b/common/sdp-glib.c index a24464ce..f280d0d1 100644 --- a/common/sdp-glib.c +++ b/common/sdp-glib.c @@ -115,8 +115,8 @@ static void element_start(GMarkupParseContext *context, } } - ctx_data->stack_head->data = - sdp_xml_parse_datatype(element_name, ctx_data->stack_head); + ctx_data->stack_head->data = sdp_xml_parse_datatype(element_name, + ctx_data->stack_head, ctx_data->record); if (ctx_data->stack_head->data == NULL) error("Can't parse element %s", element_name); @@ -213,7 +213,7 @@ sdp_record_t *sdp_xml_parse_record(const char *data, int size) record = sdp_record_alloc(); if (!record) { - sdp_record_free(record); + free(ctx_data); return NULL; } -- cgit