Fix some errors found by valgrind
[720] Analyzer: inputLine key press and release events to ScriptWidget