tests: tracerrecord: Fix messages glist memory leak

https://bugzilla.gnome.org/show_bug.cgi?id=760821
This commit is contained in:
Vineeth TM 2016-01-19 15:03:55 +09:00 committed by Stefan Sauer
parent 4859494945
commit 78ab2b530b

View file

@ -61,7 +61,7 @@ cleanup (void)
gst_debug_set_threshold_for_name ("GST_TRACER", GST_LEVEL_NONE); gst_debug_set_threshold_for_name ("GST_TRACER", GST_LEVEL_NONE);
gst_debug_add_log_function (gst_debug_log_default, NULL, NULL); gst_debug_add_log_function (gst_debug_log_default, NULL, NULL);
gst_debug_remove_log_function (tracer_log_func); gst_debug_remove_log_function (tracer_log_func);
g_list_foreach (messages, (GFunc) g_free, NULL); g_list_free_full (messages, (GDestroyNotify) g_free);
messages = NULL; messages = NULL;
} }