(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
1 changed files with 6 additions and 0 deletions

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");