Fix v8 handle leak in incubator code.
authorGlenn Watson <glenn.watson@nokia.com>
Thu, 17 Nov 2011 02:46:27 +0000 (12:46 +1000)
committerQt by Nokia <qt-info@nokia.com>
Sun, 20 Nov 2011 23:39:05 +0000 (00:39 +0100)
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>
src/declarative/qml/qdeclarativecomponent.cpp

index 580ce5b..b95c75f 100644 (file)
@@ -1277,6 +1277,7 @@ QDeclarativeComponentExtension::~QDeclarativeComponentExtension()
 {
     qPersistentDispose(incubationConstructor);
     qPersistentDispose(initialProperties);
+    qPersistentDispose(forceCompletion);
 }
 
 QV8IncubatorResource::QV8IncubatorResource(QV8Engine *engine, IncubationMode m)