mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-23 00:00:08 +00:00
Virtualize destructors to make sure they get called
May actually prevent a leak or two.
This commit is contained in:
parent
335082e74e
commit
d11d14eb8c
@ -11,7 +11,7 @@
|
||||
class EmuWindow_GLFW : public EmuWindow {
|
||||
public:
|
||||
EmuWindow_GLFW();
|
||||
~EmuWindow_GLFW();
|
||||
~EmuWindow_GLFW() override;
|
||||
|
||||
/// Swap buffers to display the next frame
|
||||
void SwapBuffers();
|
||||
|
@ -87,7 +87,7 @@ class GRenderWindow : public QWidget, public EmuWindow
|
||||
|
||||
public:
|
||||
GRenderWindow(QWidget* parent = NULL);
|
||||
~GRenderWindow();
|
||||
~GRenderWindow() override;
|
||||
|
||||
void closeEvent(QCloseEvent*);
|
||||
|
||||
|
@ -31,6 +31,7 @@ class NonCopyable
|
||||
protected:
|
||||
NonCopyable() {}
|
||||
NonCopyable(const NonCopyable&&) {}
|
||||
~NonCopyable() { };
|
||||
void operator=(const NonCopyable&&) {}
|
||||
private:
|
||||
NonCopyable(NonCopyable&);
|
||||
|
@ -16,7 +16,7 @@ public:
|
||||
num_instructions = 0;
|
||||
}
|
||||
|
||||
~ARM_Interface() {
|
||||
virtual ~ARM_Interface() {
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -14,7 +14,7 @@ class ARM_Interpreter : virtual public ARM_Interface {
|
||||
public:
|
||||
|
||||
ARM_Interpreter();
|
||||
~ARM_Interpreter();
|
||||
~ARM_Interpreter() override;
|
||||
|
||||
/**
|
||||
* Set the Program Counter to an address
|
||||
|
@ -19,7 +19,7 @@ public:
|
||||
RendererBase() : m_current_fps(0), m_current_frame(0) {
|
||||
}
|
||||
|
||||
~RendererBase() {
|
||||
virtual ~RendererBase() {
|
||||
}
|
||||
|
||||
/// Swap buffers (render frame)
|
||||
|
@ -17,7 +17,7 @@ class RendererOpenGL : virtual public RendererBase {
|
||||
public:
|
||||
|
||||
RendererOpenGL();
|
||||
~RendererOpenGL();
|
||||
~RendererOpenGL() override;
|
||||
|
||||
/// Swap buffers (render frame)
|
||||
void SwapBuffers();
|
||||
|
Loading…
Reference in New Issue
Block a user