From 89eeb64854ecce7750c584a144fe28cdfc1f5474 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 1 May 2020 10:44:28 -0400 Subject: [PATCH] applets/swkbd: Make destructor virtual Prevents undefined behavior when destroying a derived class through a base class pointer. --- src/core/frontend/applets/swkbd.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/frontend/applets/swkbd.h b/src/core/frontend/applets/swkbd.h index 1ca1858cc..757130be4 100644 --- a/src/core/frontend/applets/swkbd.h +++ b/src/core/frontend/applets/swkbd.h @@ -82,6 +82,8 @@ enum class ValidationError { class SoftwareKeyboard { public: + virtual ~SoftwareKeyboard() = default; + /** * Executes the software keyboard, configured with the given parameters. */