on xenial help sign in
Remove ApplicationInfo destructor fix as Saviq already did it in trunk in the meantime
da0ec72Daniel d'Andrada
tests/mocks/Unity/Application/ApplicationInfo.cpp−3
@@ -54,9 +54,6 @@ ApplicationInfo::ApplicationInfo(QObject *parent)
54ApplicationInfo::~ApplicationInfo()
54ApplicationInfo::~ApplicationInfo()
55{
55{
56 if (m_surface) {
56 if (m_surface) {
57− // break the cyclic reference before destroying it
58− m_surface->setApplication(nullptr);
59−
60 Q_EMIT SurfaceManager::singleton()->surfaceDestroyed(m_surface);
57 Q_EMIT SurfaceManager::singleton()->surfaceDestroyed(m_surface);
61 m_surface->deleteLater();
58 m_surface->deleteLater();
62 setSurface(nullptr);
59 setSurface(nullptr);