[autotest] Fix crash in TestWindowManagement::cleanup

Didn't delete the m_windowManagement causing a crash on teardown.
This commit is contained in:
Martin Gräßlin 2016-03-02 08:16:23 +01:00
parent b6cea86610
commit eff6a69544

View file

@ -201,6 +201,10 @@ void TestWindowManagement::cleanup()
delete m_queue;
m_queue = nullptr;
}
if (m_windowManagement) {
delete m_windowManagement;
m_windowManagement = nullptr;
}
if (m_registry) {
delete m_registry;
m_registry = nullptr;