qa-scenario: avoid assertion on dispose

After an error, the pipeline might still be null, check before unreffing
This commit is contained in:
Thiago Santos 2013-07-31 15:01:13 -03:00
parent f1368356bc
commit 2901e35f5c

View file

@ -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);