If the engine is destroyed before the root component, assumptions of
resource availability are broken.
Change-Id: I7fe27ff38ae3c215d58fb8811aff449b6c1f7b5b
Reviewed-by: Martin Jones <martin.jones@nokia.com>
{
if (QQmlDebugService::isDebuggingEnabled())
QQmlInspectorService::instance()->removeView(q_func());
-
- delete root;
}
void QQuickViewPrivate::execute()
QQuickView::~QQuickView()
{
+ // Ensure that the component is destroyed before the engine; the engine may
+ // be a child of the QQuickViewPrivate, and will be destroyed by its dtor
+ Q_D(QQuickView);
+ delete d->root;
+ d->root = 0;
}
/*! \property QQuickView::source