diff options
| author | 2019-05-04 01:47:16 -0400 | |
|---|---|---|
| committer | 2019-05-04 01:47:38 -0400 | |
| commit | 1230a0e7cebdba78298002f6ea445f293e642ceb (patch) | |
| tree | 2c311e3e42a5ee527cacec8c194d7092dd3fb351 /src/core/frontend/emu_window.cpp | |
| parent | Merge pull request #2408 from FearlessTobi/port-4215 (diff) | |
| download | yuzu-1230a0e7cebdba78298002f6ea445f293e642ceb.tar.gz yuzu-1230a0e7cebdba78298002f6ea445f293e642ceb.tar.xz yuzu-1230a0e7cebdba78298002f6ea445f293e642ceb.zip | |
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.
Diffstat (limited to 'src/core/frontend/emu_window.cpp')
| -rw-r--r-- | src/core/frontend/emu_window.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/frontend/emu_window.cpp b/src/core/frontend/emu_window.cpp index 1320bbe77..eda466a5d 100644 --- a/src/core/frontend/emu_window.cpp +++ b/src/core/frontend/emu_window.cpp | |||
| @@ -10,6 +10,8 @@ | |||
| 10 | 10 | ||
| 11 | namespace Core::Frontend { | 11 | namespace Core::Frontend { |
| 12 | 12 | ||
| 13 | GraphicsContext::~GraphicsContext() = default; | ||
| 14 | |||
| 13 | class EmuWindow::TouchState : public Input::Factory<Input::TouchDevice>, | 15 | class EmuWindow::TouchState : public Input::Factory<Input::TouchDevice>, |
| 14 | public std::enable_shared_from_this<TouchState> { | 16 | public std::enable_shared_from_this<TouchState> { |
| 15 | public: | 17 | public: |