From 07f9d4660e8380609fc9296b4211d4794b385326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Tue, 14 Feb 2012 16:13:29 +0100 Subject: 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 --- src/gui/kernel/qwindowsysteminterface_qpa_p.h | 1 + 1 file changed, 1 insertion(+) 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; }; -- cgit v0.12