QWindowSystemInterface: Fix memory leak
Don't leak event objects in synchronousWindowSystemEvents mode. Change-Id: I663aa100a3629dd1caa926765046f9e0c30b6374 Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>bb10
parent
d23562da1c
commit
befe1e37e2
|
|
@ -427,6 +427,7 @@ void QWindowSystemInterfacePrivate::handleWindowSystemEvent(QWindowSystemInterfa
|
|||
{
|
||||
if (synchronousWindowsSystemEvents) {
|
||||
QGuiApplicationPrivate::processWindowSystemEvent(ev);
|
||||
delete ev;
|
||||
} else {
|
||||
windowSystemEventQueue.append(ev);
|
||||
QAbstractEventDispatcher *dispatcher = QGuiApplicationPrivate::qt_qpa_core_dispatcher();
|
||||
|
|
|
|||
Loading…
Reference in New Issue