Fix input devices leak in client
Change-Id: I28200698706168308e450b2cd3cfa99df517f9b7 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
This commit is contained in:
parent
36d1c47e66
commit
bc63ed702f
@ -165,6 +165,9 @@ QWaylandDisplay::QWaylandDisplay(QWaylandIntegration *waylandIntegration)
|
|||||||
|
|
||||||
QWaylandDisplay::~QWaylandDisplay(void)
|
QWaylandDisplay::~QWaylandDisplay(void)
|
||||||
{
|
{
|
||||||
|
qDeleteAll(mInputDevices);
|
||||||
|
mInputDevices.clear();
|
||||||
|
|
||||||
foreach (QWaylandScreen *screen, mScreens) {
|
foreach (QWaylandScreen *screen, mScreens) {
|
||||||
mWaylandIntegration->destroyScreen(screen);
|
mWaylandIntegration->destroyScreen(screen);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user