strgen: Fix memory leak

This commit is contained in:
Jonathan G Rennison
2023-02-27 22:34:08 +00:00
parent 50be7b224a
commit b1d55519d3

View File

@@ -589,7 +589,7 @@ static const CmdStruct *ParseCommandString(const char **str, char *param, int *a
* @param translation Are we reading a translation?
*/
StringReader::StringReader(StringData &data, const char *file, bool master, bool translation) :
data(data), file(stredup(file)), master(master), translation(translation)
data(data), file(file), master(master), translation(translation)
{
}