From 70fdb7312791c9cb32745d8bb466ad4557d0c5b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 25 May 2015 15:53:37 +0200 Subject: [PATCH] fix missing dispose on stream in IniFile --- OpenRA.Game/FileFormats/IniFile.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/FileFormats/IniFile.cs b/OpenRA.Game/FileFormats/IniFile.cs index a4630330b1..3be88101c1 100644 --- a/OpenRA.Game/FileFormats/IniFile.cs +++ b/OpenRA.Game/FileFormats/IniFile.cs @@ -22,7 +22,8 @@ namespace OpenRA.FileFormats public IniFile(Stream s) { - Load(s); + using (s) + Load(s); } public IniFile(params Stream[] streams)