summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Bass <floobleflam@gmail.com>2017-04-25 10:04:50 +0100
committerSebastian Dröge <sebastian@centricular.com>2017-04-25 22:18:53 +0300
commitd8afce67c3884aaa4f5961605380664e49dfe1d1 (patch)
tree3fb7c979ae672fbf801d21a29ca9a1238995f499
parent29feef49130d382bcb03961bbd4005e3b9386865 (diff)
downloadgstreamer-plugins-bad-d8afce67c3884aaa4f5961605380664e49dfe1d1.tar.gz
ttmlparse: Don't leak TtmlElements when deleting GNodes/trees.
https://bugzilla.gnome.org/show_bug.cgi?id=781725
-rw-r--r--ext/ttml/ttmlparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ttml/ttmlparse.c b/ext/ttml/ttmlparse.c
index 8e8499056..e029e703e 100644
--- a/ext/ttml/ttmlparse.c
+++ b/ext/ttml/ttmlparse.c
@@ -1152,7 +1152,7 @@ ttml_remove_nodes_by_time (GNode * node, GstClockTime time)
}
if (!node->children && ((element->begin > time) || (element->end <= time))) {
- g_node_destroy (node);
+ ttml_delete_tree (node);
node = NULL;
}
@@ -1704,7 +1704,7 @@ static void
ttml_delete_scene (TtmlScene * scene)
{
if (scene->trees)
- g_list_free_full (scene->trees, (GDestroyNotify) g_node_destroy);
+ g_list_free_full (scene->trees, (GDestroyNotify) ttml_delete_tree);
if (scene->buf)
gst_buffer_unref (scene->buf);
g_slice_free (TtmlScene, scene);