QSGContext::invalidate() is called from the QSGContext destructor,
but the atlas manager is only created if QSGContext::initialize()
is called, which may not always happen.
The result was a bunch of "QCoreApplication::postEvent: Unexpected
null receiver" messages during testing.
Change-Id: I11a294d48c06d687a9f82cf1ce825063cda8ecf6
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
QSGAtlasTexture::Texture, but this seemed simpler.
*/
- d->atlasManager->deleteLater();
- d->atlasManager = 0;
+ if (d->atlasManager) {
+ d->atlasManager->deleteLater();
+ d->atlasManager = 0;
+ }
}