Returned GstPad by nle_object_remove_ghost_pad() has increased
refcount.
remove_sink_pad (NleOperation * operation, GstPad * sinkpad)
{
gboolean ret = TRUE;
+ gboolean need_unref = FALSE;
GST_DEBUG ("sinkpad %s:%s", GST_DEBUG_PAD_NAME (sinkpad));
ret = FALSE;
goto beach;
}
+ need_unref = TRUE;
}
if (sinkpad) {
}
operation->sinks = g_list_remove (operation->sinks, sinkpad);
nle_object_remove_ghost_pad ((NleObject *) operation, sinkpad);
+ if (need_unref)
+ gst_object_unref (sinkpad);
operation->realsinks--;
}