Skip to content

Commit

Permalink
ZVISION: Fix memory leak (CID 1109659)
Browse files Browse the repository at this point in the history
  • Loading branch information
Torbjörn Andersson committed Oct 25, 2014
1 parent f25e889 commit 4fdd9bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engines/zvision/fonts/truetype_font.cpp
Expand Up @@ -95,6 +95,7 @@ Graphics::Surface *TruetypeFont::drawTextToSurface(const Common::String &text, u
lines.pop_back();
}
if (lines.size() == 0) {
delete surface;
return nullptr;
}

Expand Down

0 comments on commit 4fdd9bb

Please sign in to comment.