summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2012-02-14 15:13:29 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-02-14 19:49:27 (GMT)
commit07f9d4660e8380609fc9296b4211d4794b385326 (patch)
tree4b2f350a2631f190b108100d243a8354691103bc
parentd4bf0ec8041779c1e2fd2ab99a019e4e99dc0b4f (diff)
downloadQt-07f9d4660e8380609fc9296b4211d4794b385326.zip
Qt-07f9d4660e8380609fc9296b4211d4794b385326.tar.gz
Qt-07f9d4660e8380609fc9296b4211d4794b385326.tar.bz2
Fixed memory leak in QPA/Lighthouse event handling.
The WindowSystemEvent class needs a virtual destructor, or sub-classes with non-POD members will leak memory and their member's destructors don't get called. This is a backport, the bug was already fixed in Qt 5 as 4ab6860172e14b0047e56ab. Change-Id: I2766fcea955a6cbc7613b717c76e13674943d6a9 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
-rw-r--r--src/gui/kernel/qwindowsysteminterface_qpa_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface_qpa_p.h b/src/gui/kernel/qwindowsysteminterface_qpa_p.h
index 2649b19..f26b8ee 100644
--- a/src/gui/kernel/qwindowsysteminterface_qpa_p.h
+++ b/src/gui/kernel/qwindowsysteminterface_qpa_p.h
@@ -68,6 +68,7 @@ public:
public:
WindowSystemEvent(EventType t)
: type(t) { }
+ virtual ~WindowSystemEvent() {}
EventType type;
};