mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 23:22:54 +00:00
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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue