Commit 3ad539f8 authored by Aurindam Jana's avatar Aurindam Jana
Browse files

QmlV8DebuggerClient: Fix Crash.



Call resetState() in ctor.

Change-Id: Ib95477adcb198fb2f9de26f1ad6cd64f0508fcdd
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent aef4a8fb
......@@ -79,7 +79,6 @@ public:
sequence(-1),
engine(0)
{
q->resetState();
parser = m_scriptEngine.evaluate(_("JSON.parse"));
stringifier = m_scriptEngine.evaluate(_("JSON.stringify"));
}
......@@ -844,6 +843,7 @@ QmlV8DebuggerClient::QmlV8DebuggerClient(QmlJsDebugClient::QDeclarativeDebugConn
: QmlDebuggerClient(client, QLatin1String("V8Debugger")),
d(new QmlV8DebuggerClientPrivate(this))
{
resetState();
}
QmlV8DebuggerClient::~QmlV8DebuggerClient()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment