summaryrefslogtreecommitdiff
path: root/src/strgen/strgen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/strgen/strgen.cpp')
-rw-r--r--src/strgen/strgen.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp
index 909427b56..01eaed4cb 100644
--- a/src/strgen/strgen.cpp
+++ b/src/strgen/strgen.cpp
@@ -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");