Revert "Fix a potential crash in ExternalCommandListener::CommandPipeThread"

This reverts commit 0d4768528d.
This commit is contained in:
Gunnar Beutner 2014-08-21 09:36:00 +02:00
parent 0d4768528d
commit 071ac754ca
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ void ExternalCommandListener::CommandPipeThread(const String& commandPath)
(line[strlen(line) - 1] == '\r' || line[strlen(line) - 1] == '\n'))
line[strlen(line) - 1] = '\0';
Utility::QueueAsyncCallback(boost::bind(&ExternalCommandListener::ExecuteCommand, String(line)));
Utility::QueueAsyncCallback(boost::bind(&ExternalCommandListener::ExecuteCommand, line));
}
delete line;