mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Close files, GC can take too long and the OS will trash us.
This commit is contained in:
@@ -215,6 +215,7 @@ namespace DiscImageChef.ImagePlugins
|
||||
FileStream stream = new FileStream(imagePath, FileMode.Open, FileAccess.Read);
|
||||
|
||||
stream.Read(headerBytes, 0, 12);
|
||||
stream.Close();
|
||||
|
||||
header.signature = BitConverter.ToUInt16(headerBytes, 0);
|
||||
|
||||
@@ -564,6 +565,7 @@ namespace DiscImageChef.ImagePlugins
|
||||
biggestSectorSize = (uint)decodedData.Length;
|
||||
}
|
||||
}
|
||||
stream.Close();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user