From e51912065eca5d4648a53283852c92090223b6b7 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 24 May 2016 14:04:57 +0000 Subject: [PATCH] validate: clean up action_types list on deinit Reviewed-by: Thibault Saunier Differential Revision: https://phabricator.freedesktop.org/D957 --- validate/gst/validate/gst-validate-scenario.c | 7 +++++++ validate/gst/validate/gst-validate-scenario.h | 2 ++ validate/gst/validate/validate.c | 2 ++ 3 files changed, 11 insertions(+) diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c index b7f56a95d4..53c4531868 100644 --- a/validate/gst/validate/gst-validate-scenario.c +++ b/validate/gst/validate/gst-validate-scenario.c @@ -3638,3 +3638,10 @@ init_scenarios (void) /* *INDENT-ON* */ } + +void +gst_validate_scenario_deinit (void) +{ + _free_action_types (action_types); + action_types = NULL; +} diff --git a/validate/gst/validate/gst-validate-scenario.h b/validate/gst/validate/gst-validate-scenario.h index 08125e4c51..9ae3ca2ced 100644 --- a/validate/gst/validate/gst-validate-scenario.h +++ b/validate/gst/validate/gst-validate-scenario.h @@ -308,6 +308,8 @@ gst_validate_execute_action (GstValidateActionType * action_type GstState gst_validate_scenario_get_target_state (GstValidateScenario *scenario); +void gst_validate_scenario_deinit (void); + G_END_DECLS #endif /* __GST_VALIDATE_SCENARIOS__ */ diff --git a/validate/gst/validate/validate.c b/validate/gst/validate/validate.c index 10a1277bf9..df20f08acb 100644 --- a/validate/gst/validate/validate.c +++ b/validate/gst/validate/validate.c @@ -269,6 +269,8 @@ gst_validate_deinit (void) _free_plugin_config (core_config); gst_validate_deinit_runner (); + gst_validate_scenario_deinit (); + g_clear_object (&_gst_validate_registry_default); _priv_validate_override_registry_deinit ();