1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 02:49:10 +00:00

(svn r26054) -Fix: minor memory leak in strgen

This commit is contained in:
rubidium
2013-11-22 21:45:57 +00:00
parent 3362606401
commit 0eaa8fbfcd

View File

@@ -290,6 +290,12 @@ struct HeaderFileWriter : HeaderWriter, FileWriter {
fprintf(this->fh, "#define TABLE_STRINGS_H\n");
}
/** Free the filename. */
~HeaderFileWriter()
{
free(real_filename);
}
void WriteStringID(const char *name, int stringid)
{
if (prev + 1 != stringid) fprintf(this->fh, "\n");