validate: The scenario only old a weak ref so unref the weak ref

We were unrefing an object we did not actually own a ref on.
This commit is contained in:
Thibault Saunier 2014-08-12 15:14:28 +02:00
parent 161610c26e
commit 3979c49cd2

View file

@ -1587,7 +1587,8 @@ gst_validate_scenario_dispose (GObject * object)
if (priv->last_seek)
gst_event_unref (priv->last_seek);
if (GST_VALIDATE_SCENARIO (object)->pipeline)
gst_object_unref (GST_VALIDATE_SCENARIO (object)->pipeline);
g_object_weak_unref (G_OBJECT (GST_VALIDATE_SCENARIO (object)->pipeline),
(GWeakNotify) _pipeline_freed_cb, object);
g_list_free_full (priv->actions, (GDestroyNotify) gst_mini_object_unref);
G_OBJECT_CLASS (gst_validate_scenario_parent_class)->dispose (object);