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
parent dd93c7359e
commit 678b18dde6

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). // 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()); memoryStream = new MemoryStream(stream.ReadAllBytesToArray());
stream.Dispose();
} }
if (ZipUtils.IsZipArchive(memoryStream)) if (ZipUtils.IsZipArchive(memoryStream))