From bdc2493096d3eab932da0cdf50b4c7238bf333b3 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 24 Jun 2020 17:40:19 +0200 Subject: QPointingDevice: Parent the default mouse to QCoreApplication Otherwise it will leak. Change-Id: I1c522dace0139dac3e626399963f58c56f052aba Reviewed-by: Shawn Rutledge --- src/gui/kernel/qpointingdevice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/kernel/qpointingdevice.cpp b/src/gui/kernel/qpointingdevice.cpp index 29423f9c0d..63d61cc804 100644 --- a/src/gui/kernel/qpointingdevice.cpp +++ b/src/gui/kernel/qpointingdevice.cpp @@ -332,7 +332,8 @@ const QPointingDevice *QPointingDevice::primaryPointingDevice(const QString& sea << "The platform plugin should have provided one via " "QWindowSystemInterface::registerInputDevice(). Creating a default mouse for now."; mouse = new QPointingDevice(QLatin1String("core pointer"), 1, DeviceType::Mouse, - PointerType::Generic, Capability::Position, 1, 3, seatName); + PointerType::Generic, Capability::Position, 1, 3, seatName, + QPointingDeviceUniqueId(), QCoreApplication::instance()); QInputDevicePrivate::registerDevice(mouse); return mouse; } -- cgit v1.2.3