fix CCConsole linux crash
Merge pull request #6225 from heliclei/fix-console-linux-crash2

fix CCConsole linux crash