From: <chr...@us...> - 2006-08-28 11:39:10
|
Revision: 297 Author: christianhujer Date: 2006-08-28 04:39:01 -0700 (Mon, 28 Aug 2006) ViewCVS: http://svn.sourceforge.net/gridarta/?rev=297&view=rev Log Message: ----------- Decreased memory consumption of CMapFileDecode. Modified Paths: -------------- trunk/daimonin/src/daieditor/CMapFileDecode.java Modified: trunk/daimonin/src/daieditor/CMapFileDecode.java =================================================================== --- trunk/daimonin/src/daieditor/CMapFileDecode.java 2006-08-28 11:37:40 UTC (rev 296) +++ trunk/daimonin/src/daieditor/CMapFileDecode.java 2006-08-28 11:39:01 UTC (rev 297) @@ -96,16 +96,15 @@ while ((thisLine = myInput.readLine()) != null) { readArch(myInput, thisLine); // all these are map arches } + // finally... here we go + // last action: if the map is bigger than the specified size in + // the maparch, we set the true size: the maxxlen/maxylen counters. + maparch.ensureMapSize(maxxlen + 1, maxylen + 1); + return objects; // return first arch of the list } finally { + objects = null; myInput.close(); } - - // finally... here we go - // last action: if the map is bigger than the specified size in - // the maparch, we set the true size: the maxxlen/maxylen counters. - maparch.ensureMapSize(maxxlen + 1, maxylen + 1); - - return objects; // return first arch of the list } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |