comparison api/Factories/AbstractNativeWarFoundryFactory.cs @ 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 8e636443aa8e
children 1d13820b3d96
comparison
equal deleted inserted replaced
149:c01366bd1627 150:b36cc4af435b
100 if (obj!=null) 100 if (obj!=null)
101 { 101 {
102 objects = new List<IWarFoundryObject>(); 102 objects = new List<IWarFoundryObject>();
103 objects.Add(obj); 103 objects.Add(obj);
104 } 104 }
105
106 file.Close();
105 107
106 return objects; 108 return objects;
107 } 109 }
108 110
109 protected Army CreateArmyFromFile(ZipFile file) 111 protected Army CreateArmyFromFile(ZipFile file)