summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2010-01-29 13:28:34 (GMT)
committerKent Hansen <kent.hansen@nokia.com>2010-01-29 13:28:58 (GMT)
commitecd6cdbe4389de8cf8cc65a09050b257ff921686 (patch)
tree2c2a090a79d399929c576e8e00f4667545be4587
parentb9da3c5129b8c24e89db1f349587c6b72bfe5876 (diff)
downloadQt-ecd6cdbe4389de8cf8cc65a09050b257ff921686.zip
Qt-ecd6cdbe4389de8cf8cc65a09050b257ff921686.tar.gz
Qt-ecd6cdbe4389de8cf8cc65a09050b257ff921686.tar.bz2
Fix autotest memory leak
-rw-r--r--tests/auto/qscriptvalue/tst_qscriptvalue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp
index 2aeabf0..ef960d0 100644
--- a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp
+++ b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp
@@ -2907,7 +2907,7 @@ void tst_QScriptValue::equals()
QScriptValue qobj1 = eng.newQObject(this);
QScriptValue qobj2 = eng.newQObject(this);
QScriptValue qobj3 = eng.newQObject(0);
- QScriptValue qobj4 = eng.newQObject(new QObject());
+ QScriptValue qobj4 = eng.newQObject(new QObject(), QScriptEngine::ScriptOwnership);
QVERIFY(qobj1.equals(qobj2)); // compares the QObject pointers
QVERIFY(!qobj2.equals(qobj4)); // compares the QObject pointers
QVERIFY(!qobj2.equals(obj2)); // compares the QObject pointers