Browse Source

Fix potential usage of deallocated objects

core_refactor
Anton Tarasenko 2 years ago
parent
commit
566e5866be
  1. 2
      sources/CoreRealm/Features/Commands/BuiltInCommands/ACommandHelp.uc

2
sources/CoreRealm/Features/Commands/BuiltInCommands/ACommandHelp.uc

@ -178,6 +178,8 @@ private final function FillCommandToAliasesMap(Feature enabledFeature)
InsertIntoAliasesMap(commandName, subcommandName, availableAliases[i]); InsertIntoAliasesMap(commandName, subcommandName, availableAliases[i]);
commandName.FreeSelf(); commandName.FreeSelf();
subcommandName.FreeSelf(); subcommandName.FreeSelf();
commandName = none;
subcommandName = none;
} }
// Clean up // Clean up
_.memory.FreeMany(availableAliases); _.memory.FreeMany(availableAliases);

Loading…
Cancel
Save