From 53eb6a750256d0546ee9a34c744a4352d483b352 Mon Sep 17 00:00:00 2001 From: Ravi Kiran K N Date: Fri, 18 Sep 2015 10:59:46 +0530 Subject: [PATCH] playback-test: avoid critical on exit Only free vis_entries array when not null on exit. https://bugzilla.gnome.org/show_bug.cgi?id=755201 --- tests/examples/playback/playback-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/examples/playback/playback-test.c b/tests/examples/playback/playback-test.c index 74c04e2aaf..d458c2be35 100644 --- a/tests/examples/playback/playback-test.c +++ b/tests/examples/playback/playback-test.c @@ -3385,7 +3385,8 @@ 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); + if (app->vis_entries) + g_array_free (app->vis_entries, TRUE); g_print ("free pipeline\n"); gst_object_unref (app->pipeline); }