validate: report: fix invalid read when destroying Report

Summary:
@report was invalid when we were trying to clear the mutex.

validate: scenario: remove weak pointer when destroying action

Free an invalid read when the scenario is destroyed after the action.

Differential Revision: http://phabricator.freedesktop.org/D44
This commit is contained in:
Guillaume Desmottes 2015-03-20 15:00:28 +01:00
parent 7aa5f85ccd
commit 2aeaa1b279

View file

@ -212,6 +212,10 @@ _action_free (GstValidateAction * action)
if (action->priv->main_structure)
gst_structure_free (action->priv->main_structure);
if (action->scenario)
g_object_remove_weak_pointer (G_OBJECT (action->scenario),
((gpointer *) & action->scenario));
g_slice_free (GstValidateActionPrivate, action->priv);
g_slice_free (GstValidateAction, action);
}