asset: Avoid unrefing a task we do not own

This commit is contained in:
Thibault Saunier 2019-04-18 16:44:31 -04:00
parent 056198b15e
commit b09ed0d0c3

View file

@ -1182,6 +1182,7 @@ ges_asset_request_async (GType extractable_type,
case ASSET_NEEDS_RELOAD:
GST_DEBUG_OBJECT (asset, "Asset in cache and needs reload");
ges_asset_cache_append_task (extractable_type, real_id, task);
task = NULL;
GES_ASSET_GET_CLASS (asset)->start_loading (asset, &error);
goto done;