mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
validate:scenario: Fix a leak when done waiting for an ASYNC action
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3000>
This commit is contained in:
parent
5724a64660
commit
515e1b55ee
1 changed files with 3 additions and 1 deletions
|
@ -6259,8 +6259,10 @@ gst_validate_action_set_done (GstValidateAction * action)
|
||||||
g_assert (!action->priv->pending_set_done);
|
g_assert (!action->priv->pending_set_done);
|
||||||
action->priv->pending_set_done = TRUE;
|
action->priv->pending_set_done = TRUE;
|
||||||
|
|
||||||
if (scenario && scenario->priv->wait_message_action == action)
|
if (scenario && scenario->priv->wait_message_action == action) {
|
||||||
|
gst_validate_action_unref (scenario->priv->wait_message_action);
|
||||||
scenario->priv->wait_message_action = NULL;
|
scenario->priv->wait_message_action = NULL;
|
||||||
|
}
|
||||||
gst_clear_object (&scenario);
|
gst_clear_object (&scenario);
|
||||||
|
|
||||||
g_main_context_invoke_full (action->priv->context,
|
g_main_context_invoke_full (action->priv->context,
|
||||||
|
|
Loading…
Reference in a new issue