debugger support

This commit is contained in:
Jeff Hutchinson 2021-08-19 22:05:43 -04:00
parent 98a2fa0f33
commit 59312d7d52
8 changed files with 46 additions and 15 deletions

View file

@ -1923,7 +1923,7 @@ void postConsoleInput( RawData data )
{
// TODO(JTH): Mem leak
// Schedule this to happen at the next time event.
ConsoleValue* argv = new ConsoleValue[2];
ConsoleValue* argv = new ConsoleValue[2]();
argv[0].setString("eval");
argv[1].setString(reinterpret_cast<const char*>(data.data));
@ -2563,7 +2563,7 @@ ConsoleValueToStringArrayWrapper::~ConsoleValueToStringArrayWrapper()
StringArrayToConsoleValueWrapper::StringArrayToConsoleValueWrapper(int targc, const char** targv)
{
argv = new ConsoleValue[targc];
argv = new ConsoleValue[targc]();
argc = targc;
for (int i=0; i<targc; i++)