Commit 51544425 authored by Erwan Tulou's avatar Erwan Tulou

skins2: better cleanup for button and checkbox

parent f54769eb
......@@ -79,6 +79,11 @@ CtrlButton::CtrlButton( intf_thread_t *pIntf, const GenericBitmap &rBmpUp,
CtrlButton::~CtrlButton()
{
if( m_pImg )
{
m_pImg->stopAnim();
m_pImg->delObserver( this );
}
}
void CtrlButton::setLayout( GenericLayout *pLayout,
......
......@@ -111,6 +111,11 @@ CtrlCheckbox::CtrlCheckbox( intf_thread_t *pIntf,
CtrlCheckbox::~CtrlCheckbox()
{
if( m_pImgCurrent )
{
m_pImgCurrent->stopAnim();
m_pImgCurrent->delObserver( this );
}
m_rVariable.delObserver( this );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment