1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-29 10:29:30 +00:00

Grow the line info collection as needed before actually adding items. This

reduces memory consumption.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5164 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2011-08-14 20:05:20 +00:00
parent 17e2276f38
commit e7fe36399b

View File

@ -129,6 +129,9 @@ void ReadLineInfoList (FILE* F, ObjData* O, Collection* LineInfos)
/* Read the number of line info indices that follow */
unsigned LineInfoCount = ReadVar (F);
/* Grow the collection as needed */
CollGrow (LineInfos, LineInfoCount);
/* Read the line infos and resolve them */
while (LineInfoCount--) {