[Scummvm-cvs-logs] scummvm master -> 4fdd9bbab33e00e2520c642bf5cca798b8e6e1b5

eriktorbjorn eriktorbjorn at telia.com
Sat Oct 25 21:14:44 CEST 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4fdd9bbab3 ZVISION: Fix memory leak (CID 1109659)


Commit: 4fdd9bbab33e00e2520c642bf5cca798b8e6e1b5
    https://github.com/scummvm/scummvm/commit/4fdd9bbab33e00e2520c642bf5cca798b8e6e1b5
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2014-10-25T21:11:49+02:00

Commit Message:
ZVISION: Fix memory leak (CID 1109659)

Changed paths:
    engines/zvision/fonts/truetype_font.cpp



diff --git a/engines/zvision/fonts/truetype_font.cpp b/engines/zvision/fonts/truetype_font.cpp
index ba4d72b..45eaeeb 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;
 	}
 






More information about the Scummvm-git-logs mailing list