diff --git a/scene.cpp b/scene.cpp --- a/scene.cpp +++ b/scene.cpp @@ -100,7 +100,7 @@ Scene::~Scene() { - qDeleteAll(m_windows); + Q_ASSERT(m_windows.isEmpty()); } // returns mask and possibly modified region