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 diff
     1.1 --- a/api/Factories/AbstractNativeWarFoundryFactory.cs	Sat Sep 26 10:15:07 2009 +0000
     1.2 +++ b/api/Factories/AbstractNativeWarFoundryFactory.cs	Sat Sep 26 10:43:28 2009 +0000
     1.3 @@ -101,7 +101,9 @@
     1.4  			{
     1.5  				objects = new List<IWarFoundryObject>();
     1.6  				objects.Add(obj);
     1.7 -			}
     1.8 +			}
     1.9 +
    1.10 +			file.Close();
    1.11  			
    1.12  			return objects;
    1.13  		}