mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
Fix memory leak in Text:set (fixes #1181)
This commit is contained in:
@@ -129,6 +129,7 @@ void Text::addTextData(const TextData &t)
|
|||||||
{
|
{
|
||||||
voffset = 0;
|
voffset = 0;
|
||||||
draw_commands.clear();
|
draw_commands.clear();
|
||||||
|
text_data.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadVertices(vertices, voffset);
|
uploadVertices(vertices, voffset);
|
||||||
|
|||||||
Reference in New Issue
Block a user