diff --git a/Facepunch.Steamworks/Structs/UgcItem.cs b/Facepunch.Steamworks/Structs/UgcItem.cs index 87457e6..4eeaca9 100644 --- a/Facepunch.Steamworks/Structs/UgcItem.cs +++ b/Facepunch.Steamworks/Structs/UgcItem.cs @@ -228,9 +228,12 @@ public float DownloadAmount .GetPageAsync( 1 ); if ( !file.HasValue ) return null; - if ( file.Value.ResultCount == 0 ) return null; + using ( file.Value ) + { + if ( file.Value.ResultCount == 0 ) return null; - return file.Value.Entries.First(); + return file.Value.Entries.First(); + } } internal static Item From( SteamUGCDetails_t details )