From 4ab6860172e14b0047e56ab778decafed797afae Mon Sep 17 00:00:00 2001 From: jian liang Date: Fri, 27 Jan 2012 21:08:53 +0800 Subject: [PATCH] add virtual destructor to QWindowSystemInterfacePrivate::WindowSystemEvent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a virtual destructor to QWindowSystemInterfacePrivate::WindowSystemEvent class. Otherwise, in QWindowSystemInterface::sendWindowSystemEvents() "delete event" can't destruct the subclass of WindowSystemEvent properly. Change-Id: Ic708f4ab61de88cd0015aa6e472d356b2de64583 Reviewed-by: Samuel Rødal 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 6d378b3877..0bd9ba017a 100644 --- a/src/gui/kernel/qwindowsysteminterface_qpa_p.h +++ b/src/gui/kernel/qwindowsysteminterface_qpa_p.h @@ -73,6 +73,7 @@ public: public: explicit WindowSystemEvent(EventType t) : type(t), synthetic(false) { } + virtual ~WindowSystemEvent() { } EventType type; bool synthetic; };