mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
Plug some GError leaks when loading assets
This commit is contained in:
parent
683f827a8b
commit
5c54ba55b7
2 changed files with 3 additions and 1 deletions
|
@ -817,6 +817,8 @@ done:
|
||||||
if (possible_id)
|
if (possible_id)
|
||||||
g_free (possible_id);
|
g_free (possible_id);
|
||||||
|
|
||||||
|
g_clear_error (&error);
|
||||||
|
|
||||||
if (pendings) {
|
if (pendings) {
|
||||||
for (tmp = pendings; tmp; tmp = tmp->next)
|
for (tmp = pendings; tmp; tmp = tmp->next)
|
||||||
_free_pending_clip (priv, tmp->data);
|
_free_pending_clip (priv, tmp->data);
|
||||||
|
|
|
@ -636,6 +636,7 @@ new_asset_cb (GESAsset * source, GAsyncResult * res, GESProject * project)
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
possible_id = ges_project_try_updating_id (project, source, error);
|
possible_id = ges_project_try_updating_id (project, source, error);
|
||||||
|
g_clear_error (&error);
|
||||||
|
|
||||||
if (possible_id == NULL)
|
if (possible_id == NULL)
|
||||||
return;
|
return;
|
||||||
|
@ -644,7 +645,6 @@ new_asset_cb (GESAsset * source, GAsyncResult * res, GESProject * project)
|
||||||
ges_asset_get_extractable_type (source));
|
ges_asset_get_extractable_type (source));
|
||||||
|
|
||||||
g_free (possible_id);
|
g_free (possible_id);
|
||||||
g_error_free (error);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue