diff --git a/scene.cpp b/scene.cpp index a12e974293..b5ffc541ab 100644 --- a/scene.cpp +++ b/scene.cpp @@ -100,9 +100,7 @@ Scene::Scene(QObject *parent) Scene::~Scene() { - foreach (Window *w, m_windows) { - delete w; - } + qDeleteAll(m_windows); } // returns mask and possibly modified region