From 7266fa4fc5c74f627af26ea8aacf22bbc4e846e7 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Thu, 14 Jul 2016 14:22:38 +0200 Subject: [PATCH] Fix memory leak in Text:set (fixes #1181) --- src/modules/graphics/opengl/Text.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/graphics/opengl/Text.cpp b/src/modules/graphics/opengl/Text.cpp index 8b66fafa5..79deac7f4 100644 --- a/src/modules/graphics/opengl/Text.cpp +++ b/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);