QWaylandDisplay: Destroy screens when destroying the display.
Fixes a crash in tst_QApplication. Change-Id: Ibfc7aded10609cff9c7a20b7193f44d1c73bc893 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
This commit is contained in:
parent
131ccbd4cd
commit
132cbe5414
@ -156,6 +156,8 @@ QWaylandDisplay::QWaylandDisplay(QWaylandIntegration *waylandIntegration)
|
|||||||
|
|
||||||
QWaylandDisplay::~QWaylandDisplay(void)
|
QWaylandDisplay::~QWaylandDisplay(void)
|
||||||
{
|
{
|
||||||
|
qDeleteAll(mScreens);
|
||||||
|
mScreens.clear();
|
||||||
delete mDndSelectionHandler.take();
|
delete mDndSelectionHandler.take();
|
||||||
mEventThread->quit();
|
mEventThread->quit();
|
||||||
mEventThread->wait();
|
mEventThread->wait();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user