diff --git a/libs/gst/controller/gstinterpolationcontrolsource.c b/libs/gst/controller/gstinterpolationcontrolsource.c index 85ab095eac..e3983b0fba 100644 --- a/libs/gst/controller/gstinterpolationcontrolsource.c +++ b/libs/gst/controller/gstinterpolationcontrolsource.c @@ -594,8 +594,10 @@ gst_interpolation_control_source_unset_all (GstInterpolationControlSource * g_mutex_lock (self->lock); /* free GstControlPoint structures */ - g_sequence_free (self->priv->values); - self->priv->values = NULL; + if (self->priv->values) { + g_sequence_free (self->priv->values); + self->priv->values = NULL; + } self->priv->nvalues = 0; self->priv->valid_cache = FALSE;