fix assert if InitMenu is called more than once on a screen that uses OptionRowHandlers

This commit is contained in:
Glenn Maynard
2005-08-13 04:57:41 +00:00
parent e4df19496b
commit 18a1459284
+1
View File
@@ -212,6 +212,7 @@ void ScreenOptions::InitMenu( const vector<OptionRowDefinition> &vDefs, const ve
for( unsigned i=0; i<m_pRows.size(); i++ )
{
m_framePage.RemoveChild( m_pRows[i] );
m_pRows[i]->DetachHandler();
SAFE_DELETE( m_pRows[i] );
}
m_pRows.clear();