ges-launch: Fix memory leak

This commit is contained in:
Edward Hervey 2010-08-31 13:29:37 +02:00
parent 9c82a2841c
commit c655a86492

View file

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