asset: Avoid unrefing a task we do not own
authorThibault Saunier <tsaunier@igalia.com>
Thu, 18 Apr 2019 20:44:31 +0000 (16:44 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Thu, 18 Apr 2019 20:44:41 +0000 (16:44 -0400)
ges/ges-asset.c

index 3052dee..0bd1d33 100644 (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;