asset: Do not take an extra ref on asset when already initialized
authorThibault Saunier <tsaunier@igalia.com>
Mon, 15 Apr 2019 21:03:49 +0000 (17:03 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Mon, 15 Apr 2019 21:11:48 +0000 (17:11 -0400)
The task already has a ref so this one doesn't make sense and leads to leaks

ges/ges-asset.c

index ad06eff..3052dee 100644 (file)
@@ -1152,8 +1152,6 @@ ges_asset_request_async (GType extractable_type,
     while (TRUE) {
       switch (asset->priv->state) {
         case ASSET_INITIALIZED:
-          gst_object_ref (asset);
-
           GST_DEBUG_OBJECT (asset, "Asset in cache and initialized, "
               "using it");