fix memleak

This commit is contained in:
Glenn Maynard
2003-10-31 04:31:34 +00:00
parent 580c5899b0
commit e50abca316
+1 -1
View File
@@ -250,7 +250,7 @@ void ScreenOptions::Init( InputMode im, OptionRow OptionRows[], int iNumOptionLi
ScreenOptions::~ScreenOptions()
{
LOG->Trace( "ScreenOptions::~ScreenOptions()" );
for( int i=0; i<m_iNumOptionRows; i++ )
for( int i=0; i<m_iNumOptionRows+1; i++ ) /* +1 = "exit" */
for( unsigned j = 0; j < m_textItems[i].size(); ++j)
delete m_textItems[i][j];
}