Fix a single memory leak in loading the string table.

This commit is contained in:
Daiyuu Nobori committed 2018-10-29 14:48:15 +09:00
1 parent 18f7bfe33f
commit 4e4db36c11
1 file changed
+2
+2
View File
@@ -945,6 +945,8 @@ TABLE *ParseTableLine(char *line, char *prefix, UINT prefix_size, LIST *replace_
UniReplaceStrEx(tmp, tmp_size, tmp, (wchar_t *)r->name, r->unistr, false); UniReplaceStrEx(tmp, tmp_size, tmp, (wchar_t *)r->name, r->unistr, false);
} }
Free(unistr);
unistr = CopyUniStr(tmp); unistr = CopyUniStr(tmp);
Free(tmp); Free(tmp);