From 827ed99bcb0e9109a9dfe08c795876eeb5917b78 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 4 Sep 2016 12:57:38 +0200 Subject: FULLPIPE: Fix Valgrind warning Since _points is allocated with realloc(), it should be freed with free(), not delete. --- engines/fullpipe/statics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/fullpipe') 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; } -- cgit v1.2.3