From: Thibault Saunier Date: Thu, 28 Mar 2019 16:51:36 +0000 (-0300) Subject: asset: Plug a GError leak X-Git-Tag: 1.19.3~493^2~528 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de7c0731f50564d33173a2cf80d752ab83259ede;p=platform%2Fupstream%2Fgstreamer.git asset: Plug a GError leak --- diff --git a/ges/ges-asset.c b/ges/ges-asset.c index bc05fdf..ad06eff 100644 --- a/ges/ges-asset.c +++ b/ges/ges-asset.c @@ -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: