validate: cleanup several items on shutdown
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9118>
This commit is contained in:
parent
b0885d2fc3
commit
79321deb27
@ -709,3 +709,9 @@ gst_validate_flow_init (void)
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
_priv_validate_flow_deinit (void)
|
||||
{
|
||||
g_clear_list (&all_overrides, gst_object_unref);
|
||||
}
|
||||
|
@ -79,6 +79,8 @@ gst_validate_pipeline_monitor_new_full (GstPipeline * pipeline,
|
||||
|
||||
G_GNUC_INTERNAL gboolean gst_validate_extra_checks_init (void);
|
||||
G_GNUC_INTERNAL gboolean gst_validate_flow_init (void);
|
||||
G_GNUC_INTERNAL void _priv_validate_flow_deinit (void);
|
||||
|
||||
G_GNUC_INTERNAL gboolean is_tty (void);
|
||||
|
||||
/* MediaDescriptor structures */
|
||||
|
@ -251,6 +251,7 @@ gst_validate_issue_new_full (GstValidateIssueId issue_id, const gchar * summary,
|
||||
}
|
||||
|
||||
issue = g_new (GstValidateIssue, 1);
|
||||
issue->refcount = 1;
|
||||
issue->issue_id = issue_id;
|
||||
issue->summary = g_strdup (summary);
|
||||
issue->description = g_strdup (description);
|
||||
@ -288,6 +289,7 @@ gst_validate_issue_new (GstValidateIssueId issue_id, const gchar * summary,
|
||||
}
|
||||
|
||||
issue = g_new (GstValidateIssue, 1);
|
||||
issue->refcount = 1;
|
||||
issue->issue_id = issue_id;
|
||||
issue->summary = g_strdup (summary);
|
||||
issue->description = g_strdup (description);
|
||||
@ -735,6 +737,15 @@ gst_validate_report_init (void)
|
||||
void
|
||||
gst_validate_report_deinit (void)
|
||||
{
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
g_clear_pointer (&newline_regex, g_regex_unref);
|
||||
#endif
|
||||
|
||||
if (_gst_validate_issues)
|
||||
g_hash_table_destroy (g_steal_pointer (&_gst_validate_issues));
|
||||
|
||||
_gst_validate_report_start_time = 0;
|
||||
|
||||
if (server_ostream) {
|
||||
g_output_stream_close (server_ostream, NULL, NULL);
|
||||
server_ostream = NULL;
|
||||
|
@ -530,6 +530,10 @@ gst_validate_deinit (void)
|
||||
testfile_structs = NULL;
|
||||
g_clear_pointer (&global_testfile, g_free);
|
||||
|
||||
if (validate_initialized)
|
||||
g_rec_mutex_clear (&init_lock);
|
||||
|
||||
_priv_validate_flow_deinit ();
|
||||
_priv_validate_override_registry_deinit ();
|
||||
validate_initialized = FALSE;
|
||||
gst_validate_report_deinit ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user