diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-05-07 12:29:30 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-07 14:32:08 +0200 |
commit | 2fc19b516f1bb0a67609570a6ca62f42db7f0f47 (patch) | |
tree | 8a00d4014479ad446bc8228835e6bdc650457358 /src/qml/qml/qqmlengine.cpp | |
parent | 41f8a7c0f645e04dba5952c4cdb87828ea2a884b (diff) |
Remove more v8::Persistent usages
Change-Id: Ifa1706e2e609ded86a8bc1a840ca2ed36b869098
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlengine.cpp')
-rw-r--r-- | src/qml/qml/qqmlengine.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qml/qml/qqmlengine.cpp b/src/qml/qml/qqmlengine.cpp index 9a7b218ca7..34114ea4b9 100644 --- a/src/qml/qml/qqmlengine.cpp +++ b/src/qml/qml/qqmlengine.cpp @@ -1531,11 +1531,7 @@ void QQmlData::destroyed(QObject *object) delete extendedData; // Dispose the handle. - // We don't simply clear it (and wait for next gc cycle to dispose - // via the weak qobject reference callback) as this affects the - // outcomes of v8's gc statistical analysis heuristics, which can - // cause unnecessary growth of the old pointer space js heap area. - qPersistentDispose(v8object); + v8object = QV4::Value::undefinedValue(); if (ownMemory) delete this; |