summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Kim <justin.kim@collabora.com>2015-09-11 09:58:56 +0900
committerThibault Saunier <tsaunier@gnome.org>2015-09-11 11:26:35 +0200
commit04bac06fad499fa89aa5fc99a6f68dc19d64ebcb (patch)
tree23b0b2ccc720eccd60625c9e96e3a9f35d7fb624
parent32c694cc0091d25b9e2dc7a547d6f83a686e7203 (diff)
ges-launcher: don't leak GError
https://bugzilla.gnome.org/show_bug.cgi?id=754858
-rw-r--r--tools/ges-launcher.c5
1 files changed, 4 insertions, 1 deletions
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);