Diff between 0bb66d3d1abd7d25b840d535c03b1b9613727d5c and 00eea35722b73d922472c7fba006f711690ce195
Changed Files
| File | Additions | Deletions | Status |
| src/sdp-xml.c | +8 | -1 | modified |
Full Patch
diff --git a/src/sdp-xml.c b/src/sdp-xml.c
index a83dec1..e5b30e8 100644
--- a/src/sdp-xml.c
+++ b/src/sdp-xml.c
@@ -545,8 +545,15 @@ static void element_end(GMarkupParseContext *context,
return;
}
- if (!ctx_data->stack_head || !ctx_data->stack_head->data) {
+ if (!ctx_data->stack_head)
+ return;
+
+ if (!ctx_data->stack_head->data) {
DBG("No data for %s", element_name);
+
+ elem = ctx_data->stack_head;
+ ctx_data->stack_head = ctx_data->stack_head->next;
+ sdp_xml_data_free(elem);
return;
}