From 3979c49cd2493792d8705f2cc8b17bc738b7856c Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 12 Aug 2014 15:14:28 +0200 Subject: [PATCH] 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. --- validate/gst/validate/gst-validate-scenario.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c index 7ab9bd5f07..52f18ee0cf 100644 --- a/validate/gst/validate/gst-validate-scenario.c +++ b/validate/gst/validate/gst-validate-scenario.c @@ -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);