From 04bac06fad499fa89aa5fc99a6f68dc19d64ebcb Mon Sep 17 00:00:00 2001 From: Justin Kim Date: Fri, 11 Sep 2015 09:58:56 +0900 Subject: ges-launcher: don't leak GError https://bugzilla.gnome.org/show_bug.cgi?id=754858 --- tools/ges-launcher.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/ges-launcher.c b/tools/ges-launcher.c index e5a26ee2..da20abb2 100644 --- a/tools/ges-launcher.c +++ b/tools/ges-launcher.c @@ -169,6 +169,7 @@ _project_loaded_cb (GESProject * project, GESTimeline * timeline, g_assert_no_error (error); if (error) { self->priv->seenerrors = TRUE; + g_error_free (error); g_application_quit (G_APPLICATION (self)); } } @@ -227,7 +228,7 @@ _create_timeline (GESLauncher * self, const gchar * serialized_timeline, if (error) { g_printerr ("\nERROR: Could not create timeline because: %s\n\n", error->message); - + g_error_free (error); return FALSE; } @@ -247,6 +248,8 @@ _set_sink (GESLauncher * self, const gchar * sink_desc, if (sink == NULL) { GST_ERROR ("could not create the requested videosink %s (err: %s), " "exiting", err ? err->message : "", sink_desc); + if (err) + g_error_free (err); return FALSE; } set_func (self->priv->pipeline, sink); -- cgit v1.2.3