validate:scenario: Plug some leaks

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/219>
This commit is contained in:
Thibault Saunier 2020-08-13 16:19:50 -04:00
parent 369c74941f
commit 4177f0995e

View file

@ -756,6 +756,8 @@ _get_target_object_property (GstValidateScenario * scenario,
done = TRUE;
}
}
gst_iterator_free (it);
}
REPORT_UNLESS (target, err, "Could not find pad: %s::%s", elemname, padname);
@ -4259,6 +4261,13 @@ gst_validate_scenario_load_structures (GstValidateScenario * scenario,
}
action->action_number = priv->num_actions++;
if (action->priv->state == GST_VALIDATE_EXECUTE_ACTION_OK) {
GST_DEBUG_OBJECT (scenario,
"Unrefing action that has already been executed");
gst_validate_action_unref (action);
action = NULL;
}
}
/* max-latency and max-dropped can be overridden using config */