aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4jsonobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4jsonobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4jsonobject.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4jsonobject.cpp b/src/qml/jsruntime/qv4jsonobject.cpp
index aa6b261928..df6de78710 100644
--- a/src/qml/jsruntime/qv4jsonobject.cpp
+++ b/src/qml/jsruntime/qv4jsonobject.cpp
@@ -281,7 +281,9 @@ bool JsonParser::parseMember(Object *o)
if (!parseValue(&val))
return false;
- Property *p = o->insertMember(context->engine->newIdentifier(key), Attr_Data);
+ Scope scope(o->engine());
+ ScopedString s(scope, context->engine->newIdentifier(key));
+ Property *p = o->insertMember(s, Attr_Data);
p->value = val;
END;