Core/Misc: Multiple static analysis issues fixed (small optimizations and clear code)

This commit is contained in:
DDuarte committed 2014-09-19 03:30:02 +01:00
1 parent e6b7de8c97
commit cefcde9ba9
40 files changed
+72 -84

No files matched your search

@@ -192,9 +192,7 @@ bool RASession::ProcessCommand(std::string& command)
}
// Obtain a new promise per command
if (_commandExecuting != nullptr)
delete _commandExecuting;
delete _commandExecuting;
_commandExecuting = new std::promise<void>();
CliCommandHolder* cmd = new CliCommandHolder(this, command.c_str(), &RASession::CommandPrint, &RASession::CommandFinished);