asset: Plug a GError leak

This commit is contained in:
Thibault Saunier 2019-03-28 13:51:36 -03:00
parent 2b79c0db5e
commit de7c0731f5

View file

@ -1189,7 +1189,9 @@ ges_asset_request_async (GType extractable_type,
goto done;
case ASSET_INITIALIZED_WITH_ERROR:
g_task_return_error (task,
error ? error : g_error_copy (asset->priv->error));
error ? g_error_copy (error) : g_error_copy (asset->priv->error));
g_clear_error (&error);
goto done;
default: