summaryrefslogtreecommitdiffstats
path: root/common/sdp-glib.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-05-21 15:13:50 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-05-21 15:13:50 +0000
commitcb5898ff72875b9c24d7fc44cddb005f4495dff3 (patch)
treecbc164cbc25ef4771f0535b5b89dad7201c08b30 /common/sdp-glib.c
parent00ce8acd7add7b70e0493fef533d1c9c54bab7b7 (diff)
Fix SDP pattern extraction for XML
Diffstat (limited to 'common/sdp-glib.c')
-rw-r--r--common/sdp-glib.c6
1 files changed, 3 insertions, 3 deletions
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;
}