mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r26054) -Fix: minor memory leak in strgen
This commit is contained in:
parent
3362606401
commit
0eaa8fbfcd
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue