mirror of https://github.com/PCSX2/pcsx2.git
gui: add a destructor to CtrlRegisterList object
So we can free allocated memory
This commit is contained in:
parent
11e5fe8879
commit
8b91aefd49
|
@ -80,6 +80,13 @@ CtrlRegisterList::CtrlRegisterList(wxWindow* parent, DebugInterface* _cpu)
|
||||||
SetScrollbars(1, rowHeight, actualSize.x, actualSize.y / rowHeight, 0, 0);
|
SetScrollbars(1, rowHeight, actualSize.x, actualSize.y / rowHeight, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CtrlRegisterList::~CtrlRegisterList()
|
||||||
|
{
|
||||||
|
for (auto& regs : changedCategories)
|
||||||
|
delete[] regs;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
wxSize CtrlRegisterList::getOptimalSize() const
|
wxSize CtrlRegisterList::getOptimalSize() const
|
||||||
{
|
{
|
||||||
int columnChars = 0;
|
int columnChars = 0;
|
||||||
|
|
|
@ -23,6 +23,7 @@ class CtrlRegisterList: public wxScrolledWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CtrlRegisterList(wxWindow* parent, DebugInterface* _cpu);
|
CtrlRegisterList(wxWindow* parent, DebugInterface* _cpu);
|
||||||
|
~CtrlRegisterList();
|
||||||
|
|
||||||
void mouseEvent(wxMouseEvent& evt);
|
void mouseEvent(wxMouseEvent& evt);
|
||||||
void keydownEvent(wxKeyEvent& evt);
|
void keydownEvent(wxKeyEvent& evt);
|
||||||
|
|
Loading…
Reference in New Issue