diff options
author | Morten Johan Sørvig <morten.sorvig@digia.com> | 2015-02-06 12:13:45 +0100 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@theqtcompany.com> | 2015-03-09 10:40:40 +0000 |
commit | befe1e37e28db95a79622d628a338feaa8eee77b (patch) | |
tree | f467ed77164aa45ce74941527a422af92721f655 /src/gui/kernel/qwindowsysteminterface.cpp | |
parent | d23562da1c4cb525d4012bee55bd665c6cafef04 (diff) |
QWindowSystemInterface: Fix memory leak
Don't leak event objects in synchronousWindowSystemEvents
mode.
Change-Id: I663aa100a3629dd1caa926765046f9e0c30b6374
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface.cpp')
-rw-r--r-- | src/gui/kernel/qwindowsysteminterface.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface.cpp b/src/gui/kernel/qwindowsysteminterface.cpp index 73b1a84005..7bf47a1dc8 100644 --- a/src/gui/kernel/qwindowsysteminterface.cpp +++ b/src/gui/kernel/qwindowsysteminterface.cpp @@ -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(); |