diff options
Diffstat (limited to 'engines/gob/video.cpp')
-rw-r--r-- | engines/gob/video.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/gob/video.cpp b/engines/gob/video.cpp index 79a5ba7244..068ebd3b3f 100644 --- a/engines/gob/video.cpp +++ b/engines/gob/video.cpp @@ -88,7 +88,9 @@ void Video::freeSurfDesc(SurfaceDesc * surfDesc) { if (surfDesc == 0) return; - delete[] surfDesc->vidPtr; + // TODO: valgrind shows an "Invalid free() / delete / delete[]" here... + // delete[] surfDesc->vidPtr; + // GOB2: surfDesc != _vm->_draw->_frontSurface (since _frontSurface is set // to _pPrimarySurfDesc in Game::prepareStart(), is there a difference?) if (surfDesc != _vm->_global->_pPrimarySurfDesc) { |