mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
ges-launch: Fix memory leak
This commit is contained in:
parent
9c82a2841c
commit
c655a86492
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue