1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 15:01:46 +08:00

Ensure any non-MemoryStream streams are closed as part of ImportTask

This commit is contained in:
Dean Herbert
2022-06-20 15:29:56 +09:00
Unverified
parent dd93c7359e
commit 678b18dde6
+1
View File
@@ -62,6 +62,7 @@ namespace osu.Game.Database
{
// This isn't used in any current path. May need to reconsider for performance reasons (ie. if we don't expect the incoming stream to be copied out).
memoryStream = new MemoryStream(stream.ReadAllBytesToArray());
stream.Dispose();
}
if (ZipUtils.IsZipArchive(memoryStream))