aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorFilippos Karapetis2017-03-22 22:20:18 +0200
committerFilippos Karapetis2017-03-22 22:20:18 +0200
commitf669aca3f27c6fc058f8ba94af3bffb3a0ddde5a (patch)
treefe6bd1d945260cd82db8d95f4dcea147b9c1faa8 /engines/fullpipe
parentaf874d469e1ccead8e397fe566de06afb904131e (diff)
downloadscummvm-rg350-f669aca3f27c6fc058f8ba94af3bffb3a0ddde5a.tar.gz
scummvm-rg350-f669aca3f27c6fc058f8ba94af3bffb3a0ddde5a.tar.bz2
scummvm-rg350-f669aca3f27c6fc058f8ba94af3bffb3a0ddde5a.zip
FULLPIPE: Fix mismatched free() when deleting _bitmap
_bitmap is initialized with new, so it needs to be freed with delete, not free()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index 0dbe693a60..f08e49a8a7 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -475,7 +475,7 @@ void Picture::freePicture() {
if (_bitmap) {
if (testFlags() && !_field_54) {
freeData();
- free(_bitmap);
+ delete _bitmap;
_bitmap = 0;
}
}