From aeb6a037edc7351bd7e5f0e70212d3c0fbd8f448 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 1 May 2020 10:42:54 -0400 Subject: [PATCH] applets/mii_selector: Make destructor virtual Prevents undefined behavior when destroying derived classes through a base class pointer. --- src/core/frontend/applets/mii_selector.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/frontend/applets/mii_selector.h b/src/core/frontend/applets/mii_selector.h index 588bc0c5bd..ae63e359af 100644 --- a/src/core/frontend/applets/mii_selector.h +++ b/src/core/frontend/applets/mii_selector.h @@ -29,6 +29,7 @@ struct MiiSelectorData { class MiiSelector { public: + virtual ~MiiSelector() = default; virtual void Setup(const MiiSelectorConfig& config) { this->config = MiiSelectorConfig(config); }