mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
ges-launcher: don't leak GError
https://bugzilla.gnome.org/show_bug.cgi?id=754858
This commit is contained in:
parent
32c694cc00
commit
04bac06fad
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue