1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Use vector<string> in InteractiveConsole

Issue #8597 shows Valgrind result indicating a memory leak in
InteractiveConsole. This is fixed in #8619 by ensuring that free() is
called appropriately.
This commit takes that a step further by removing all manual memory
management in favour of using vector<string>.

- argc is now gone in favour of argv.empty()/argv.size()
- argv_t is a vector of strings of utf8's
- console_command_func's signature is changed accordingly
This commit is contained in:
Tom Lankhorst
2019-01-24 16:12:49 +01:00
committed by Michael Steenbeek
parent 247e89eb53
commit 01a52d236c

File diff suppressed because it is too large Load Diff