From: Thiago Santos Date: Wed, 31 Jul 2013 18:01:13 +0000 (-0300) Subject: qa-scenario: avoid assertion on dispose X-Git-Tag: 1.19.3~491^2~2551 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2901e35f5cf7f9eb07975309bf8eb16b659599b4;p=platform%2Fupstream%2Fgstreamer.git qa-scenario: avoid assertion on dispose After an error, the pipeline might still be null, check before unreffing --- diff --git a/validate/gst/qa/gst-qa-scenario.c b/validate/gst/qa/gst-qa-scenario.c index 2bd079a..b86ceda 100644 --- a/validate/gst/qa/gst-qa-scenario.c +++ b/validate/gst/qa/gst-qa-scenario.c @@ -442,7 +442,8 @@ gst_qa_scenario_dispose (GObject * object) { GstQaScenarioPrivate *priv = GST_QA_SCENARIO (object)->priv; - gst_object_unref (priv->pipeline); + if (priv->pipeline) + gst_object_unref (priv->pipeline); g_list_free_full (priv->seeks, (GDestroyNotify) _free_seek_info); G_OBJECT_CLASS (gst_qa_scenario_parent_class)->dispose (object);