diff options
author | Torbjörn Andersson | 2014-10-25 21:11:49 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2014-10-25 21:11:49 +0200 |
commit | 4fdd9bbab33e00e2520c642bf5cca798b8e6e1b5 (patch) | |
tree | 46e8a9ce470b166e814cfc863a6f864d52692350 /engines/zvision | |
parent | f25e889c13238671c8ce33a95bcf59f82e70c5c3 (diff) | |
download | scummvm-rg350-4fdd9bbab33e00e2520c642bf5cca798b8e6e1b5.tar.gz scummvm-rg350-4fdd9bbab33e00e2520c642bf5cca798b8e6e1b5.tar.bz2 scummvm-rg350-4fdd9bbab33e00e2520c642bf5cca798b8e6e1b5.zip |
ZVISION: Fix memory leak (CID 1109659)
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/fonts/truetype_font.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/zvision/fonts/truetype_font.cpp b/engines/zvision/fonts/truetype_font.cpp index ba4d72bde8..45eaeeb2b4 100644 --- a/engines/zvision/fonts/truetype_font.cpp +++ b/engines/zvision/fonts/truetype_font.cpp @@ -95,6 +95,7 @@ Graphics::Surface *TruetypeFont::drawTextToSurface(const Common::String &text, u lines.pop_back(); } if (lines.size() == 0) { + delete surface; return nullptr; } |