[Scummvm-git-logs] scummvm master -> 827ed99bcb0e9109a9dfe08c795876eeb5917b78

eriktorbjorn eriktorbjorn at telia.com
Sun Sep 4 12:58:11 CEST 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:
827ed99bcb FULLPIPE: Fix Valgrind warning


Commit: 827ed99bcb0e9109a9dfe08c795876eeb5917b78
    https://github.com/scummvm/scummvm/commit/827ed99bcb0e9109a9dfe08c795876eeb5917b78
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2016-09-04T12:57:38+02:00

Commit Message:
FULLPIPE: Fix Valgrind warning

Since _points is allocated with realloc(), it should be freed with
free(), not delete.

Changed paths:
    engines/fullpipe/statics.cpp



diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 1e43720..d8cb339 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -47,7 +47,7 @@ StepArray::~StepArray() {
 		for (int i = 0; i < _pointsCount; i++)
 			delete _points[i];
 
-		delete _points;
+		free(_points);
 
 		_points = 0;
 	}





More information about the Scummvm-git-logs mailing list