Dispose fileStream when problems occur.

This commit is contained in:
Matthias Mailänder
2016-07-03 10:27:44 +02:00
parent 96d9a01f76
commit 2de423ddb9

View File

@@ -47,7 +47,8 @@ namespace OpenRA
{
try
{
package = new ZipFile(File.OpenRead(pair.Second), pair.Second);
using (var fileStream = File.OpenRead(pair.Second))
package = new ZipFile(fileStream, pair.Second);
}
catch
{