Hopefully fixed more memory leakage in fonts

This commit is contained in:
Bart van Strien
2010-09-18 10:07:52 +02:00
parent 99abe5ae19
commit 2b273c0081
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ namespace font
GlyphData::~GlyphData() GlyphData::~GlyphData()
{ {
delete data; delete[] data;
} }
void * GlyphData::getData() const void * GlyphData::getData() const
+4
View File
@@ -48,6 +48,10 @@ namespace opengl
Font::~Font() Font::~Font()
{ {
for(unsigned int i = 0; i < MAX_CHARS; i++)
{
delete glyphs[i];
}
delete[] glyphs; delete[] glyphs;
} }