summaryrefslogtreecommitdiff
path: root/Widgets
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-12 07:24:38 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-12 07:24:38 +0100
commitb4bd4f4b293d1ecd6283d3f35935c2aa43d8d29c (patch)
tree6b46311f953726279e77c5b1d3a157e97f3d2e68 /Widgets
parent8068b8e09e1f7790f7e11b3b6fb6ccd932b48670 (diff)
downloadserenity-b4bd4f4b293d1ecd6283d3f35935c2aa43d8d29c.zip
Make the Event class virtual.
I realized that we're leaking all the members in Event subclasses.
Diffstat (limited to 'Widgets')
-rw-r--r--Widgets/Event.h2
1 files changed, 1 insertions, 1 deletions
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; }