From 07d5e7ab4d233d1f1c6cc030c26967cede117433 Mon Sep 17 00:00:00 2001 From: Vineeth T M Date: Tue, 14 Jul 2015 13:00:03 +0900 Subject: [PATCH] playback-test: fix memory leak context during main and filter list during init visualization are not being freed resulting in memory leak and app->vis_entries https://bugzilla.gnome.org/show_bug.cgi?id=752359 --- tests/examples/playback/playback-test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/examples/playback/playback-test.c b/tests/examples/playback/playback-test.c index a2927b3d60..c197da7bde 100644 --- a/tests/examples/playback/playback-test.c +++ b/tests/examples/playback/playback-test.c @@ -1317,6 +1317,7 @@ init_visualization_features (PlaybackApp * app) gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (app->vis_combo), name); } gtk_combo_box_set_active (GTK_COMBO_BOX (app->vis_combo), 0); + gst_plugin_feature_list_free (list); } static void @@ -3381,7 +3382,7 @@ reset_app (PlaybackApp * app) g_list_free (app->paths); g_list_foreach (app->sub_paths, (GFunc) g_free, NULL); g_list_free (app->sub_paths); - + g_array_free (app->vis_entries, TRUE); g_print ("free pipeline\n"); gst_object_unref (app->pipeline); } @@ -3411,7 +3412,7 @@ main (int argc, char **argv) g_print ("Error initializing: %s\n", err->message); exit (1); } - + g_option_context_free (ctx); GST_DEBUG_CATEGORY_INIT (playback_debug, "playback-test", 0, "playback example");