summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlpackage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/util/qmlpackage.cpp')
-rw-r--r--src/declarative/util/qmlpackage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qmlpackage.cpp b/src/declarative/util/qmlpackage.cpp
index 908b368..6bc1ef9 100644
--- a/src/declarative/util/qmlpackage.cpp
+++ b/src/declarative/util/qmlpackage.cpp
@@ -101,7 +101,7 @@ QmlPackage::~QmlPackage()
Q_D(QmlPackage);
for (int ii = 0; ii < d->dataList.count(); ++ii) {
QObject *obj = d->dataList.at(ii);
- delete obj;
+ obj->setParent(this);
}
}