[Scummvm-git-logs] scummvm master -> 483fff04f67cd48a74ca3f90c87649d4f38649aa

sev- sev at scummvm.org
Mon Dec 12 22:49:59 CET 2016


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:
483fff04f6 FULLPIPE: Plug more memory leaks


Commit: 483fff04f67cd48a74ca3f90c87649d4f38649aa
    https://github.com/scummvm/scummvm/commit/483fff04f67cd48a74ca3f90c87649d4f38649aa
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-12-12T22:49:40+01:00

Commit Message:
FULLPIPE: Plug more memory leaks

Changed paths:
    engines/fullpipe/gfx.cpp
    engines/fullpipe/statesaver.cpp


diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index e46ab93..145f4e8 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -45,6 +45,9 @@ Background::Background() {
 }
 
 Background::~Background() {
+	for (uint i = 1; i < _picObjList.size(); i++)
+		delete _picObjList[i];
+
 	_picObjList.clear();
 
 	for (int i = 0; i < _bigPictureArray1Count; i++) {
diff --git a/engines/fullpipe/statesaver.cpp b/engines/fullpipe/statesaver.cpp
index 7fb56f0..5eb08fe 100644
--- a/engines/fullpipe/statesaver.cpp
+++ b/engines/fullpipe/statesaver.cpp
@@ -55,7 +55,7 @@ bool GameLoader::writeSavegame(Scene *sc, const char *fname) {
 	header.updateCounter = _updateCounter;
 	header.unkField = 1;
 
-	Common::MemoryWriteStreamDynamic stream;
+	Common::MemoryWriteStreamDynamic stream(DisposeAfterUse::YES);
 
 	MfcArchive *archive = new MfcArchive(&stream);
 





More information about the Scummvm-git-logs mailing list