diff options
author | Filippos Karapetis | 2017-03-22 22:20:18 +0200 |
---|---|---|
committer | Filippos Karapetis | 2017-03-22 22:20:18 +0200 |
commit | f669aca3f27c6fc058f8ba94af3bffb3a0ddde5a (patch) | |
tree | fe6bd1d945260cd82db8d95f4dcea147b9c1faa8 /engines/fullpipe | |
parent | af874d469e1ccead8e397fe566de06afb904131e (diff) | |
download | scummvm-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.cpp | 2 |
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; } } |