detach handler before deleting them
This commit is contained in:
@@ -101,6 +101,8 @@ void ScreenOptionsManageProfiles::Init()
|
|||||||
|
|
||||||
void ScreenOptionsManageProfiles::BeginScreen()
|
void ScreenOptionsManageProfiles::BeginScreen()
|
||||||
{
|
{
|
||||||
|
FOREACH( OptionRow*, m_pRows, r )
|
||||||
|
(*r)->DetachHandler();
|
||||||
for( unsigned i = 0; i < m_OptionRowHandlers.size(); ++i )
|
for( unsigned i = 0; i < m_OptionRowHandlers.size(); ++i )
|
||||||
delete m_OptionRowHandlers[i];
|
delete m_OptionRowHandlers[i];
|
||||||
m_OptionRowHandlers.clear();
|
m_OptionRowHandlers.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user