delete the NAM; it isn't deleted by the QDeclarativeEngine

This commit is contained in:
Aaron Seigo 2011-06-15 14:18:31 +02:00
parent f3ccce3494
commit c3157acf2c

View File

@ -190,6 +190,9 @@ DeclarativeWidget::DeclarativeWidget(QGraphicsWidget *parent)
DeclarativeWidget::~DeclarativeWidget()
{
QDeclarativeNetworkAccessManagerFactory *factory = d->engine->networkAccessManagerFactory();
d->engine->setNetworkAccessManagerFactory(0);
delete factory;
delete d;
}