ソースを参照

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

Bart van Strien 9 年 前
コミット
7266fa4fc5
1 ファイル変更1 行追加0 行削除
  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;
 		voffset = 0;
 		draw_commands.clear();
 		draw_commands.clear();
+		text_data.clear();
 	}
 	}
 
 
 	uploadVertices(vertices, voffset);
 	uploadVertices(vertices, voffset);