From bdc34bd61a39adb157b2d4b31c329eb48bf25956 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Wed, 20 Jan 2016 09:18:01 +0100 Subject: [PATCH] tests/gst/info: Fix messages glist memory leak --- tests/check/gst/gstinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/check/gst/gstinfo.c b/tests/check/gst/gstinfo.c index e5091fa2e3..3524938b88 100644 --- a/tests/check/gst/gstinfo.c +++ b/tests/check/gst/gstinfo.c @@ -327,7 +327,7 @@ GST_START_TEST (info_old_printf_extensions) gst_debug_add_log_function (gst_debug_log_default, NULL, NULL); gst_debug_remove_log_function (printf_extension_log_func); save_messages = FALSE; - g_list_foreach (messages, (GFunc) g_free, NULL); + g_list_free_full (messages, (GDestroyNotify) g_free); messages = NULL; }