mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +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;
|
||||
draw_commands.clear();
|
||||
text_data.clear();
|
||||
}
|
||||
|
||||
uploadVertices(vertices, voffset);
|
||||
|
||||
Reference in New Issue
Block a user