GRAPHICS: Delete MacFont in MacText

This commit is contained in:
Tobia Tesan 2017-04-30 00:18:23 +02:00 committed by Eugene Sandulenko
parent af664fe757
commit ed2f09b13f
3 changed files with 6 additions and 2 deletions

View file

@ -37,6 +37,11 @@ const Font *MacFontRun::getFont() {
return font;
}
MacText::~MacText(){
delete _macFont;
}
MacText::MacText(Common::String s, MacWindowManager *wm, const MacFont *macFont, int fgcolor, int bgcolor, int maxWidth, TextAlign textAlignment) {
_str = s;
_wm = wm;