mirror of
https://github.com/love2d/love.git
synced 2026-08-21 13:09:56 +02:00
Hopefully fixed more memory leakage in fonts
This commit is contained in:
@@ -45,7 +45,7 @@ namespace font
|
||||
|
||||
GlyphData::~GlyphData()
|
||||
{
|
||||
delete data;
|
||||
delete[] data;
|
||||
}
|
||||
|
||||
void * GlyphData::getData() const
|
||||
|
||||
@@ -48,6 +48,10 @@ namespace opengl
|
||||
|
||||
Font::~Font()
|
||||
{
|
||||
for(unsigned int i = 0; i < MAX_CHARS; i++)
|
||||
{
|
||||
delete glyphs[i];
|
||||
}
|
||||
delete[] glyphs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user