aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2016-09-04 12:57:38 +0200
committerTorbjörn Andersson2016-09-04 12:57:38 +0200
commit827ed99bcb0e9109a9dfe08c795876eeb5917b78 (patch)
treea45ed5b07a8d0e9c23bb27d640e35b3e19f31dff /engines
parent58e38be05c14da0731221c329a3ccc0869e17fd2 (diff)
downloadscummvm-rg350-827ed99bcb0e9109a9dfe08c795876eeb5917b78.tar.gz
scummvm-rg350-827ed99bcb0e9109a9dfe08c795876eeb5917b78.tar.bz2
scummvm-rg350-827ed99bcb0e9109a9dfe08c795876eeb5917b78.zip
FULLPIPE: Fix Valgrind warning
Since _points is allocated with realloc(), it should be freed with free(), not delete.
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/statics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 1e43720c32..d8cb3390f8 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;
}