From c655a8649200dd28473b6caeeee24c5dd076e90d Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 31 Aug 2010 13:29:37 +0200 Subject: [PATCH] ges-launch: Fix memory leak --- tools/ges-launch.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/ges-launch.c b/tools/ges-launch.c index 09720b1641..9d9620cc04 100644 --- a/tools/ges-launch.c +++ b/tools/ges-launch.c @@ -56,11 +56,16 @@ thumbnail_cb (gpointer pipeline) static int i = 0; GESTimelinePipeline *p = (GESTimelinePipeline *) pipeline; gchar *filename; + gboolean res; filename = g_strdup_printf ("thumbnail%d.jpg", i++); - return ges_timeline_pipeline_save_thumbnail (p, -1, -1, + res = ges_timeline_pipeline_save_thumbnail (p, -1, -1, (gchar *) "image/jpeg", filename); + + g_free (filename); + + return res; } gboolean