mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 02:19:41 +00:00
(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
Block a user