(svn r15259) -Fix: [NewGRF] small memory leak when scanning labels

This commit is contained in:
rubidium 2009-01-24 17:02:59 +00:00
parent dbc4a8b331
commit 851b243f01
1 changed files with 3 additions and 0 deletions

View File

@ -6169,6 +6169,9 @@ void LoadNewGRF(uint load_index, uint file_index)
ClearTemporaryNewGRFData(_cur_grffile);
BuildCargoTranslationMap();
DEBUG(sprite, 2, "LoadNewGRF: Currently %i sprites are loaded", _cur_spriteid);
} else if (stage == GLS_INIT && HasBit(c->flags, GCF_INIT_ONLY)) {
/* We're not going to activate this, so free whatever data we allocated */
ClearTemporaryNewGRFData(_cur_grffile);
}
}
}