QWindowSystemInterface: Fix memory leak

Don't leak event objects in synchronousWindowSystemEvents
mode.

Change-Id: I663aa100a3629dd1caa926765046f9e0c30b6374
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
This commit is contained in:
Morten Johan Sørvig 2015-02-06 12:13:45 +01:00 committed by Morten Johan Sørvig
parent d23562da1c
commit befe1e37e2

View File

@ -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();