mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Dispose of Stream
s when used
This commit is contained in:
@ -50,8 +50,12 @@ namespace osu.Game.Rulesets.Edit.Checks
|
||||
continue;
|
||||
}
|
||||
|
||||
Stream data = context.WorkingBeatmap.GetStream(storagePath);
|
||||
StreamFileAbstraction fileAbstraction = new StreamFileAbstraction(filename, data);
|
||||
StreamFileAbstraction fileAbstraction;
|
||||
|
||||
using (Stream data = context.WorkingBeatmap.GetStream(storagePath))
|
||||
{
|
||||
fileAbstraction = new StreamFileAbstraction(filename, data);
|
||||
}
|
||||
|
||||
// We use TagLib here for platform invariance; BASS cannot detect audio presence on Linux.
|
||||
TagLib.File tagFile = null;
|
||||
|
Reference in New Issue
Block a user