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);
|
||||
}
|
||||
|
||||
CtrlRegisterList::~CtrlRegisterList()
|
||||
{
|
||||
for (auto& regs : changedCategories)
|
||||
delete[] regs;
|
||||
|
||||
}
|
||||
|
||||
wxSize CtrlRegisterList::getOptimalSize() const
|
||||
{
|
||||
int columnChars = 0;
|
||||
|
|
|
@ -23,14 +23,15 @@ class CtrlRegisterList: public wxScrolledWindow
|
|||
{
|
||||
public:
|
||||
CtrlRegisterList(wxWindow* parent, DebugInterface* _cpu);
|
||||
|
||||
~CtrlRegisterList();
|
||||
|
||||
void mouseEvent(wxMouseEvent& evt);
|
||||
void keydownEvent(wxKeyEvent& evt);
|
||||
void onPopupClick(wxCommandEvent& evt);
|
||||
void sizeEvent(wxSizeEvent& evt);
|
||||
void redraw();
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
||||
|
||||
virtual wxSize GetMinClientSize() const
|
||||
{
|
||||
wxSize optimalSize = getOptimalSize();
|
||||
|
|
Loading…
Reference in New Issue