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:
parent
7aa5f85ccd
commit
2aeaa1b279
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user