delete the NAM; it isn't deleted by the QDeclarativeEngine
This commit is contained in:
parent
f3ccce3494
commit
c3157acf2c
@ -190,6 +190,9 @@ DeclarativeWidget::DeclarativeWidget(QGraphicsWidget *parent)
|
||||
|
||||
DeclarativeWidget::~DeclarativeWidget()
|
||||
{
|
||||
QDeclarativeNetworkAccessManagerFactory *factory = d->engine->networkAccessManagerFactory();
|
||||
d->engine->setNetworkAccessManagerFactory(0);
|
||||
delete factory;
|
||||
delete d;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user