Add cleanup to the new appearance widget
It really should be cleaning up the heap-allocated objects it owns.
This commit is contained in:
parent
d01e22232a
commit
453976be5e
|
@ -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 );
|
||||
|
|
|
@ -90,6 +90,7 @@ public:
|
|||
};
|
||||
|
||||
APPEARANCE_CONTROLS( PCB_BASE_FRAME* aParent, wxWindow* aFocusOwner, bool aFpEditor = false );
|
||||
~APPEARANCE_CONTROLS();
|
||||
|
||||
wxSize GetBestSize() const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue