tests: tracerrecord: Fix messages glist memory leak
authorVineeth TM <vineeth.tm@samsung.com>
Tue, 19 Jan 2016 06:03:55 +0000 (15:03 +0900)
committerStefan Sauer <ensonic@users.sf.net>
Wed, 20 Jan 2016 08:17:15 +0000 (09:17 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=760821

tests/check/gst/gsttracerrecord.c

index f786fd9..f9b44af 100644 (file)
@@ -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;
 }