mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +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;
|
static int i = 0;
|
||||||
GESTimelinePipeline *p = (GESTimelinePipeline *) pipeline;
|
GESTimelinePipeline *p = (GESTimelinePipeline *) pipeline;
|
||||||
gchar *filename;
|
gchar *filename;
|
||||||
|
gboolean res;
|
||||||
|
|
||||||
filename = g_strdup_printf ("thumbnail%d.jpg", i++);
|
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);
|
(gchar *) "image/jpeg", filename);
|
||||||
|
|
||||||
|
g_free (filename);
|
||||||
|
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
|
Loading…
Reference in a new issue