From ed87cbab9080fa80beddc1edb3b45fdd43443216 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sun, 26 Apr 2009 19:40:50 +0000 Subject: Ooops, actually delete[] the correct pointer (yeah, syke, I should have valgrind'd it again ;)) svn-id: r40153 --- engines/gob/demoplayer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/gob') diff --git a/engines/gob/demoplayer.cpp b/engines/gob/demoplayer.cpp index 829ecc2e4d..cbc65dfed7 100644 --- a/engines/gob/demoplayer.cpp +++ b/engines/gob/demoplayer.cpp @@ -65,9 +65,9 @@ void DemoPlayer::clearScreen() { void DemoPlayer::playVideo(const char *fileName) { uint32 waitTime = 0; - char *file; + char *file, *filePtr; - file = new char[strlen(fileName) + 1]; + file = filePtr = new char[strlen(fileName) + 1]; strcpy(file, fileName); // Trimming spaces front @@ -103,7 +103,7 @@ void DemoPlayer::playVideo(const char *fileName) { _vm->_util->longDelay(waitTime); } - delete[] file; + delete[] filePtr; } void DemoPlayer::evaluateVideoMode(const char *mode) { -- cgit v1.2.3