Add cleanup to the new appearance widget

It really should be cleaning up the heap-allocated objects
it owns.
This commit is contained in:
Ian McInerney 2020-08-16 12:19:40 +01:00
parent d01e22232a
commit 453976be5e
2 changed files with 7 additions and 0 deletions

View File

@ -189,6 +189,12 @@ APPEARANCE_CONTROLS::APPEARANCE_CONTROLS( PCB_BASE_FRAME* aParent, wxWindow* aFo
}
APPEARANCE_CONTROLS::~APPEARANCE_CONTROLS()
{
delete m_iconProvider;
}
wxSize APPEARANCE_CONTROLS::GetBestSize() const
{
wxSize size( 220, 480 );

View File

@ -90,6 +90,7 @@ public:
};
APPEARANCE_CONTROLS( PCB_BASE_FRAME* aParent, wxWindow* aFocusOwner, bool aFpEditor = false );
~APPEARANCE_CONTROLS();
wxSize GetBestSize() const;