From 78ab2b530bdc0a897456989dfd7aaace3fc45660 Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Tue, 19 Jan 2016 15:03:55 +0900 Subject: [PATCH] tests: tracerrecord: Fix messages glist memory leak https://bugzilla.gnome.org/show_bug.cgi?id=760821 --- tests/check/gst/gsttracerrecord.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/check/gst/gsttracerrecord.c b/tests/check/gst/gsttracerrecord.c index f786fd9..f9b44af 100644 --- a/tests/check/gst/gsttracerrecord.c +++ b/tests/check/gst/gsttracerrecord.c @@ -61,7 +61,7 @@ cleanup (void) gst_debug_set_threshold_for_name ("GST_TRACER", GST_LEVEL_NONE); gst_debug_add_log_function (gst_debug_log_default, NULL, NULL); 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; } -- 2.7.4