tests/gst/info: Fix messages glist memory leak

This commit is contained in:
Stefan Sauer 2016-01-20 09:18:01 +01:00
parent 78ab2b530b
commit bdc34bd61a

View file

@ -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;
}