validate: clean up action_types list on deinit

Reviewed-by: Thibault Saunier <tsaunier@gnome.org>
Differential Revision: https://phabricator.freedesktop.org/D957
This commit is contained in:
Guillaume Desmottes 2016-05-24 14:04:57 +00:00 committed by Thibault Saunier
parent 0a667858ab
commit e51912065e
3 changed files with 11 additions and 0 deletions

View file

@ -3638,3 +3638,10 @@ init_scenarios (void)
/* *INDENT-ON* */ /* *INDENT-ON* */
} }
void
gst_validate_scenario_deinit (void)
{
_free_action_types (action_types);
action_types = NULL;
}

View file

@ -308,6 +308,8 @@ gst_validate_execute_action (GstValidateActionType * action_type
GstState GstState
gst_validate_scenario_get_target_state (GstValidateScenario *scenario); gst_validate_scenario_get_target_state (GstValidateScenario *scenario);
void gst_validate_scenario_deinit (void);
G_END_DECLS G_END_DECLS
#endif /* __GST_VALIDATE_SCENARIOS__ */ #endif /* __GST_VALIDATE_SCENARIOS__ */

View file

@ -269,6 +269,8 @@ gst_validate_deinit (void)
_free_plugin_config (core_config); _free_plugin_config (core_config);
gst_validate_deinit_runner (); gst_validate_deinit_runner ();
gst_validate_scenario_deinit ();
g_clear_object (&_gst_validate_registry_default); g_clear_object (&_gst_validate_registry_default);
_priv_validate_override_registry_deinit (); _priv_validate_override_registry_deinit ();