mirror of
https://github.com/osukey/osukey.git
synced 2025-05-15 02:27:33 +09: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).
|
// 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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user