ZVISION: Fix memory leak (CID 1109659)

This commit is contained in:
Torbjörn Andersson 2014-10-25 21:11:49 +02:00
parent f25e889c13
commit 4fdd9bbab3

View File

@ -95,6 +95,7 @@ Graphics::Surface *TruetypeFont::drawTextToSurface(const Common::String &text, u
lines.pop_back();
}
if (lines.size() == 0) {
delete surface;
return nullptr;
}