ges-project: Check for set/unset error correctly by dereferencing

... or simply calling g_clear_error() on it which does that for us.

CID 1257630
This commit is contained in:
Sebastian Dröge 2017-02-28 12:59:35 +02:00
parent da399fb196
commit 1c6893c57d

View file

@ -789,8 +789,7 @@ ges_project_create_asset_sync (GESProject * project, const gchar * id,
if (possible_id == NULL)
return NULL;
if (error)
g_clear_error (error);
g_clear_error (error);
id = possible_id;
}