mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 18:45:45 +00:00
core/frontend/emu_window: Make GraphicsContext's destructor virtual
This class is used in a polymorphic context, so destruction of the context will lead to undefined behavior if the destructor isn't virtual.
This commit is contained in:
parent
16a8098f4a
commit
6f1d39e2e5
2 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,8 @@
|
|||
|
||||
namespace Core::Frontend {
|
||||
|
||||
GraphicsContext::~GraphicsContext() = default;
|
||||
|
||||
class EmuWindow::TouchState : public Input::Factory<Input::TouchDevice>,
|
||||
public std::enable_shared_from_this<TouchState> {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue