mirror of
https://github.com/ppy/osu.git
synced 2025-03-16 05:37:19 +08:00
Ensure any non-MemoryStream
streams are closed as part of ImportTask
This commit is contained in:
parent
dd93c7359e
commit
678b18dde6
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user