mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Hopefully fixed more memory leakage in fonts
This commit is contained in:
@@ -45,7 +45,7 @@ namespace font
|
|||||||
|
|
||||||
GlyphData::~GlyphData()
|
GlyphData::~GlyphData()
|
||||||
{
|
{
|
||||||
delete data;
|
delete[] data;
|
||||||
}
|
}
|
||||||
|
|
||||||
void * GlyphData::getData() const
|
void * GlyphData::getData() const
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user