[nostalgia/core,turbine] Give Turbine and NostalgiaCore Context types virtual destructors

This commit is contained in:
Gary Talent 2023-06-27 19:38:16 -05:00
parent de6308418e
commit 39eb82596b
3 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@ class Context {
Context(Context &other) noexcept = delete;
Context(const Context &other) noexcept = delete;
Context(const Context &&other) noexcept = delete;
virtual ~Context() noexcept = default;
};

View File

@ -26,7 +26,7 @@ struct GlContext: public core::Context {
ox::Optional<ox::Size> renderSize;
renderer::Drawer drawer;
explicit GlContext(turbine::Context &tctx) noexcept;
~GlContext() noexcept;
~GlContext() noexcept override;
};
}

View File

@ -64,7 +64,7 @@ class Context {
Context(const Context &&other) noexcept = delete;
public:
inline ~Context() noexcept {
virtual inline ~Context() noexcept {
shutdown(*this);
}