The m_FontCollection wasn't initialized so it could cause a crash on exit.

Some code cleanup.
This commit is contained in:
Kimmo Pekkola
2009-09-04 17:18:15 +00:00
parent 4bf4e51126
commit 4274397806
5 changed files with 8 additions and 27 deletions

View File

@ -109,8 +109,7 @@ void CMeterString::Initialize()
if(m_FontFamily) delete m_FontFamily;
m_FontFamily = new FontFamily(m_FontFace.c_str());
Status status = m_FontFamily->GetLastStatus();
//===================================================
/* Matt King Code */
// It couldn't find the font family
// Therefore we look in the privatefontcollection of this meters MeterWindow
if(Ok != status)
@ -130,8 +129,6 @@ void CMeterString::Initialize()
}
}
/* Matt King end */
//===================================================
FontStyle style = FontStyleRegular;