Browse Source

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

Bart van Strien 9 years ago
parent
commit
7266fa4fc5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/modules/graphics/opengl/Text.cpp

+ 1 - 0
src/modules/graphics/opengl/Text.cpp

@@ -129,6 +129,7 @@ void Text::addTextData(const TextData &t)
 	{
 		voffset = 0;
 		draw_commands.clear();
+		text_data.clear();
 	}
 
 	uploadVertices(vertices, voffset);