Plug some GError leaks when loading assets

This commit is contained in:
Thibault Saunier 2019-04-05 11:24:39 -03:00
parent 683f827a8b
commit 5c54ba55b7
2 changed files with 3 additions and 1 deletions

View file

@ -817,6 +817,8 @@ done:
if (possible_id)
g_free (possible_id);
g_clear_error (&error);
if (pendings) {
for (tmp = pendings; tmp; tmp = tmp->next)
_free_pending_clip (priv, tmp->data);

View file

@ -636,6 +636,7 @@ new_asset_cb (GESAsset * source, GAsyncResult * res, GESProject * project)
if (error) {
possible_id = ges_project_try_updating_id (project, source, error);
g_clear_error (&error);
if (possible_id == NULL)
return;
@ -644,7 +645,6 @@ new_asset_cb (GESAsset * source, GAsyncResult * res, GESProject * project)
ges_asset_get_extractable_type (source));
g_free (possible_id);
g_error_free (error);
return;
}