Previously, some handles were leaking, which was causing a dramatic
slowdown in v8 gc speed over time.
Change-Id: I1e8d674b48647b7a0063a4b1c8d83130795502a0
Reviewed-on: http://codereview.qt-project.org/6026
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
{
qPersistentDispose(constructor);
qPersistentDispose(queryConstructor);
+ qPersistentDispose(rowsConstructor);
}
static QString qmlsqldatabase_databasesPath(QV8Engine *engine)
node.remove();
}
+QV8GCCallback::Referencer::~Referencer()
+{
+ qPersistentDispose(strongReferencer);
+}
+
QV8GCCallback::Referencer::Referencer()
{
v8::HandleScope handleScope;
class Referencer {
public:
- ~Referencer() {}
+ ~Referencer();
void addRelationship(QObject *object, v8::Persistent<v8::Value> handle);
void addRelationship(QObject *object, QObject *other);
private: