mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-12-25 01:11:48 +01:00
applets/mii_selector: Make destructor virtual
Prevents undefined behavior when destroying derived classes through a base class pointer.
This commit is contained in:
parent
85d37c9994
commit
aeb6a037ed
@ -29,6 +29,7 @@ struct MiiSelectorData {
|
|||||||
|
|
||||||
class MiiSelector {
|
class MiiSelector {
|
||||||
public:
|
public:
|
||||||
|
virtual ~MiiSelector() = default;
|
||||||
virtual void Setup(const MiiSelectorConfig& config) {
|
virtual void Setup(const MiiSelectorConfig& config) {
|
||||||
this->config = MiiSelectorConfig(config);
|
this->config = MiiSelectorConfig(config);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user