diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/truetypefont.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/truetypefont.cpp b/src/gui/truetypefont.cpp index 55d1a18a..e2ae5b93 100644 --- a/src/gui/truetypefont.cpp +++ b/src/gui/truetypefont.cpp @@ -181,6 +181,7 @@ int TrueTypeFont::getWidth(const std::string &text) const int w, h; const char* str = getSafeUtf8String(text); TTF_SizeUTF8(mFont, str, &w, &h); + delete[] str; return w; } |