diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2012-06-12 12:10:33 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2012-06-12 12:10:33 +0200 |
commit | f3933836fbaba174471b2504588ade874634b67d (patch) | |
tree | b51b474c30c376fea3bc926883eeae2f097bb50e /main.cpp | |
parent | b759b5f984d35d5ce95097572bd8524cfd2210fc (diff) |
Fix possible crash when executing invalid code.
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -215,6 +215,9 @@ void evaluate(QQmlJS::VM::ExecutionEngine *vm, const QString &fileName, const QS isel(function); } } + + if (! globalCode) + return; } if (!useMoth) { |