Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Glenn Watson authored and Qt by Nokia committed Nov 20, 2011
1 parent 7a5f616 commit d81059e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/declarative/qml/qdeclarativecomponent.cpp
Expand Up @@ -1277,6 +1277,7 @@ QDeclarativeComponentExtension::~QDeclarativeComponentExtension()
{
qPersistentDispose(incubationConstructor);
qPersistentDispose(initialProperties);
qPersistentDispose(forceCompletion);
}

QV8IncubatorResource::QV8IncubatorResource(QV8Engine *engine, IncubationMode m)
Expand Down

0 comments on commit d81059e

Please sign in to comment.