summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylanddisplay.cpp
diff options
context:
space:
mode:
authorOlivier Blin <olivier.blin@softathome.com>2015-06-07 14:56:45 +0200
committerOlivier Blin <qt@blino.org>2015-06-12 09:51:56 +0000
commit1d5a45b171146599c11500f6d4b821b7e1930676 (patch)
treec73a0744abb0c6da70e469d33e971a818a009e9f /src/client/qwaylanddisplay.cpp
parentd00f517237775546c9a9e3ad49e972a37486514b (diff)
Fix input devices leak in client
Change-Id: I28200698706168308e450b2cd3cfa99df517f9b7 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/client/qwaylanddisplay.cpp')
-rw-r--r--src/client/qwaylanddisplay.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/qwaylanddisplay.cpp b/src/client/qwaylanddisplay.cpp
index c3925f5c4..eb431cf0d 100644
--- a/src/client/qwaylanddisplay.cpp
+++ b/src/client/qwaylanddisplay.cpp
@@ -165,6 +165,9 @@ QWaylandDisplay::QWaylandDisplay(QWaylandIntegration *waylandIntegration)
QWaylandDisplay::~QWaylandDisplay(void)
{
+ qDeleteAll(mInputDevices);
+ mInputDevices.clear();
+
foreach (QWaylandScreen *screen, mScreens) {
mWaylandIntegration->destroyScreen(screen);
}