Commit 783aba17 authored by Seungha Yang's avatar Seungha Yang 🐑 Committed by Thibault Saunier
Browse files

nlecomposition: Don't leak GNode

Clear the last node before update
parent 61c2eb67
......@@ -3097,6 +3097,10 @@ update_pipeline (NleComposition * comp, GstClockTime currenttime, gint32 seqnum,
GST_INFO_OBJECT (comp, "Setting current stack [%" GST_TIME_FORMAT " - %"
GST_TIME_FORMAT "]", GST_TIME_ARGS (priv->current_stack_start),
GST_TIME_ARGS (priv->current_stack_stop));
if (priv->current)
g_node_destroy (priv->current);
priv->current = stack;
if (priv->current) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment