nlecomposition: Don't leak GNode

Clear the last node before update
This commit is contained in:
Seungha Yang 2019-01-14 12:52:47 +09:00 committed by Thibault Saunier
parent 61c2eb6735
commit 783aba17f6

View file

@ -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) {