[Scummvm-cvs-logs] scummvm master -> a402cd31969bf245e9318255c53fde2c92671f7c

dreammaster dreammaster at scummvm.org
Thu Aug 20 04:17:46 CEST 2015


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:
a402cd3196 SHERLOCK: Fix memory leak in resource manager


Commit: a402cd31969bf245e9318255c53fde2c92671f7c
    https://github.com/scummvm/scummvm/commit/a402cd31969bf245e9318255c53fde2c92671f7c
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-08-19T22:17:11-04:00

Commit Message:
SHERLOCK: Fix memory leak in resource manager

Changed paths:
    engines/sherlock/resources.cpp



diff --git a/engines/sherlock/resources.cpp b/engines/sherlock/resources.cpp
index a1de73e..4cdf688 100644
--- a/engines/sherlock/resources.cpp
+++ b/engines/sherlock/resources.cpp
@@ -209,6 +209,8 @@ Common::SeekableReadStream *Resources::load(const Common::String &filename, cons
 	if (!libIndex.contains(filename)) {
 		if (!suppressErrors)
 			error("Could not find resource - %s", filename.c_str());
+
+		delete libStream;
 		return nullptr;
 	}
 






More information about the Scummvm-git-logs mailing list