on xenial help sign in
Reset m_surface in ApplicationInfo's d'tor, otherwise we get it as a signal when it's too late.
4bafdb7Michał Sawicz
tests/mocks/Unity/Application/ApplicationInfo.cpp+1
@@ -54,6 +54,7 @@ ApplicationInfo::~ApplicationInfo()
54 if (m_surface) {
54 if (m_surface) {
55 Q_EMIT SurfaceManager::singleton()->surfaceDestroyed(m_surface);
55 Q_EMIT SurfaceManager::singleton()->surfaceDestroyed(m_surface);
56 m_surface->deleteLater();
56 m_surface->deleteLater();
57+ setSurface(nullptr);
57 }
58 }
58}
59}
59
60