mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +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);
|
g_assert_no_error (error);
|
||||||
if (error) {
|
if (error) {
|
||||||
self->priv->seenerrors = TRUE;
|
self->priv->seenerrors = TRUE;
|
||||||
|
g_error_free (error);
|
||||||
g_application_quit (G_APPLICATION (self));
|
g_application_quit (G_APPLICATION (self));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -227,7 +228,7 @@ _create_timeline (GESLauncher * self, const gchar * serialized_timeline,
|
||||||
if (error) {
|
if (error) {
|
||||||
g_printerr ("\nERROR: Could not create timeline because: %s\n\n",
|
g_printerr ("\nERROR: Could not create timeline because: %s\n\n",
|
||||||
error->message);
|
error->message);
|
||||||
|
g_error_free (error);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -247,6 +248,8 @@ _set_sink (GESLauncher * self, const gchar * sink_desc,
|
||||||
if (sink == NULL) {
|
if (sink == NULL) {
|
||||||
GST_ERROR ("could not create the requested videosink %s (err: %s), "
|
GST_ERROR ("could not create the requested videosink %s (err: %s), "
|
||||||
"exiting", err ? err->message : "", sink_desc);
|
"exiting", err ? err->message : "", sink_desc);
|
||||||
|
if (err)
|
||||||
|
g_error_free (err);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
set_func (self->priv->pipeline, sink);
|
set_func (self->priv->pipeline, sink);
|
||||||
|
|
Loading…
Reference in a new issue