diff options
author | Glenn Watson <glenn.watson@nokia.com> | 2011-11-17 12:46:27 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-21 00:39:05 +0100 |
commit | d81059e4f8d42869e1b9842a3b07e83c7da198be (patch) | |
tree | c2957a33fa3d7808ff9a535d0ed72edd3980d55d | |
parent | 7a5f616270ab27b3a1b6f337cd9d0e5f9b6e9ae9 (diff) |
Fix v8 handle leak in incubator code.
Release forceCompletion handle that is created in the constructor
to avoid a persistent handle being leaked.
Change-Id: I5b68d586e7a8e6ba48c018e21faac8108387fa2b
Reviewed-by: Martin Jones <martin.jones@nokia.com>
-rw-r--r-- | src/declarative/qml/qdeclarativecomponent.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativecomponent.cpp b/src/declarative/qml/qdeclarativecomponent.cpp index 580ce5b801..b95c75f91b 100644 --- a/src/declarative/qml/qdeclarativecomponent.cpp +++ b/src/declarative/qml/qdeclarativecomponent.cpp @@ -1277,6 +1277,7 @@ QDeclarativeComponentExtension::~QDeclarativeComponentExtension() { qPersistentDispose(incubationConstructor); qPersistentDispose(initialProperties); + qPersistentDispose(forceCompletion); } QV8IncubatorResource::QV8IncubatorResource(QV8Engine *engine, IncubationMode m) |