diff options
author | Robin Burchell <robin.burchell@viroteck.net> | 2014-08-17 16:07:47 +0200 |
---|---|---|
committer | Robin Burchell <robin.burchell@viroteck.net> | 2014-08-18 13:52:32 +0200 |
commit | ab8d90a16f3d8e2e4c249c8e1bf5b8a2dd79a8cc (patch) | |
tree | bd8f34ec066b68c3225ce69cede2d93a162a90ea /src/client/qwaylanddisplay.cpp | |
parent | 6d69bb420c38887c858c18abc02a97c46029b963 (diff) |
QWaylandDisplay: Destroy screens when destroying the display.
Fixes a crash in tst_QApplication.
Change-Id: Ibfc7aded10609cff9c7a20b7193f44d1c73bc893
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/client/qwaylanddisplay.cpp')
-rw-r--r-- | src/client/qwaylanddisplay.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/qwaylanddisplay.cpp b/src/client/qwaylanddisplay.cpp index 88e4e4a5b..242a13a15 100644 --- a/src/client/qwaylanddisplay.cpp +++ b/src/client/qwaylanddisplay.cpp @@ -156,6 +156,8 @@ QWaylandDisplay::QWaylandDisplay(QWaylandIntegration *waylandIntegration) QWaylandDisplay::~QWaylandDisplay(void) { + qDeleteAll(mScreens); + mScreens.clear(); delete mDndSelectionHandler.take(); mEventThread->quit(); mEventThread->wait(); |