mirror of https://github.com/OpenTTD/OpenTTD.git
Fix #10010: Memory leak in IConsolePrint in non-dedicated case
This commit is contained in:
parent
0bac74ec2b
commit
0a7ffae0d9
|
@ -123,6 +123,7 @@ void IConsolePrint(TextColour colour_code, const std::string &string)
|
||||||
|
|
||||||
IConsoleWriteToLogFile(str);
|
IConsoleWriteToLogFile(str);
|
||||||
IConsoleGUIPrint(colour_code, str);
|
IConsoleGUIPrint(colour_code, str);
|
||||||
|
free(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue