aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2009-04-26 19:40:50 +0000
committerSven Hesse2009-04-26 19:40:50 +0000
commited87cbab9080fa80beddc1edb3b45fdd43443216 (patch)
tree36190c6a51da074f74e7728f3f0cc37d84a2abe7 /engines/gob
parentb45f2e21fa87fcaade9f2ac083effe150294ef79 (diff)
downloadscummvm-rg350-ed87cbab9080fa80beddc1edb3b45fdd43443216.tar.gz
scummvm-rg350-ed87cbab9080fa80beddc1edb3b45fdd43443216.tar.bz2
scummvm-rg350-ed87cbab9080fa80beddc1edb3b45fdd43443216.zip
Ooops, actually delete[] the correct pointer (yeah, syke, I should have valgrind'd it again ;))
svn-id: r40153
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/demoplayer.cpp6
1 files changed, 3 insertions, 3 deletions
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) {