validate:scenario: sink refs when building

Scenarios are no owned by anyone, even if they are GstObjects

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4089>
This commit is contained in:
Thibault Saunier 2023-03-01 00:43:01 -03:00 committed by GStreamer Marge Bot
parent 84d6323610
commit 12c4893131

View file

@ -5292,6 +5292,8 @@ gst_validate_scenario_new (GstValidateRunner *
g_object_new (GST_TYPE_VALIDATE_SCENARIO, "validate-runner",
runner, NULL);
g_object_ref_sink (scenario);
if (structures) {
gboolean is_config;
gst_validate_scenario_load_structures (scenario, structures, &is_config,