From b4bd4f4b293d1ecd6283d3f35935c2aa43d8d29c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 12 Jan 2019 07:24:38 +0100 Subject: [PATCH] Make the Event class virtual. I realized that we're leaking all the members in Event subclasses. --- Widgets/Event.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Widgets/Event.h b/Widgets/Event.h index 31b48c3161..afc3f2e5ae 100644 --- a/Widgets/Event.h +++ b/Widgets/Event.h @@ -44,7 +44,7 @@ public: Event() { } explicit Event(Type type) : m_type(type) { } - ~Event() { } + virtual ~Event() { } Type type() const { return m_type; }