Fix memory leak in Text:set (fixes #1181)

This commit is contained in:
Bart van Strien
2016-07-14 14:22:38 +02:00
parent ba1a234543
commit 7266fa4fc5
+1
View File
@@ -129,6 +129,7 @@ void Text::addTextData(const TextData &t)
{
voffset = 0;
draw_commands.clear();
text_data.clear();
}
uploadVertices(vertices, voffset);