changeset 150:b36cc4af435b

Re #176: Bug when saving recently edited army * Try to make sure that we clear up more of our open streams Bug seems to be state related in some way since I can only trigger it when loading the file as the first action, but doesn't seem to be related to file loading of other data files since a diagnostic hard-coded "LoadFiles()" call in the FrmMain constructor doesn't change the behaviour
author IBBoard <dev@ibboard.co.uk>
date Sat, 26 Sep 2009 10:43:28 +0000
parents c01366bd1627
children 1d13820b3d96
files api/Factories/AbstractNativeWarFoundryFactory.cs
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/api/Factories/AbstractNativeWarFoundryFactory.cs	Sat Sep 26 10:15:07 2009 +0000
+++ b/api/Factories/AbstractNativeWarFoundryFactory.cs	Sat Sep 26 10:43:28 2009 +0000
@@ -101,7 +101,9 @@
 			{
 				objects = new List<IWarFoundryObject>();
 				objects.Add(obj);
-			}
+			}
+
+			file.Close();
 			
 			return objects;
 		}