mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
ControlReference: Add missing virtual destructor
ControllerEmu::Control instances have a unique_ptr<ControlReference> member, which is passed either an InputReference or OutputReference. Without this virtual destructor, deleting a derived class through a pointer to the base class is undefined behavior.
This commit is contained in:
@ -52,6 +52,8 @@ ControlReference::ControlReference() : range(1), m_parsed_expression(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
ControlReference::~ControlReference() = default;
|
||||
|
||||
InputReference::InputReference() : ControlReference()
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user