mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-02 15:16:46 +00:00
Ooops, actually delete[] the correct pointer (yeah, syke, I should have valgrind'd it again ;))
svn-id: r40153
This commit is contained in:
parent
b45f2e21fa
commit
ed87cbab90
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user