mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-23 07:20:10 +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 {
|
class EmuWindow_GLFW : public EmuWindow {
|
||||||
public:
|
public:
|
||||||
EmuWindow_GLFW();
|
EmuWindow_GLFW();
|
||||||
~EmuWindow_GLFW();
|
~EmuWindow_GLFW() override;
|
||||||
|
|
||||||
/// Swap buffers to display the next frame
|
/// Swap buffers to display the next frame
|
||||||
void SwapBuffers();
|
void SwapBuffers();
|
||||||
|
@ -87,7 +87,7 @@ class GRenderWindow : public QWidget, public EmuWindow
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
GRenderWindow(QWidget* parent = NULL);
|
GRenderWindow(QWidget* parent = NULL);
|
||||||
~GRenderWindow();
|
~GRenderWindow() override;
|
||||||
|
|
||||||
void closeEvent(QCloseEvent*);
|
void closeEvent(QCloseEvent*);
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ class NonCopyable
|
|||||||
protected:
|
protected:
|
||||||
NonCopyable() {}
|
NonCopyable() {}
|
||||||
NonCopyable(const NonCopyable&&) {}
|
NonCopyable(const NonCopyable&&) {}
|
||||||
|
~NonCopyable() { };
|
||||||
void operator=(const NonCopyable&&) {}
|
void operator=(const NonCopyable&&) {}
|
||||||
private:
|
private:
|
||||||
NonCopyable(NonCopyable&);
|
NonCopyable(NonCopyable&);
|
||||||
|
@ -16,7 +16,7 @@ public:
|
|||||||
num_instructions = 0;
|
num_instructions = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
~ARM_Interface() {
|
virtual ~ARM_Interface() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@ class ARM_Interpreter : virtual public ARM_Interface {
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
ARM_Interpreter();
|
ARM_Interpreter();
|
||||||
~ARM_Interpreter();
|
~ARM_Interpreter() override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the Program Counter to an address
|
* Set the Program Counter to an address
|
||||||
|
@ -19,7 +19,7 @@ public:
|
|||||||
RendererBase() : m_current_fps(0), m_current_frame(0) {
|
RendererBase() : m_current_fps(0), m_current_frame(0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
~RendererBase() {
|
virtual ~RendererBase() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Swap buffers (render frame)
|
/// Swap buffers (render frame)
|
||||||
|
@ -17,7 +17,7 @@ class RendererOpenGL : virtual public RendererBase {
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
RendererOpenGL();
|
RendererOpenGL();
|
||||||
~RendererOpenGL();
|
~RendererOpenGL() override;
|
||||||
|
|
||||||
/// Swap buffers (render frame)
|
/// Swap buffers (render frame)
|
||||||
void SwapBuffers();
|
void SwapBuffers();
|
||||||
|
Loading…
Reference in New Issue
Block a user