[Scummvm-cvs-logs] scummvm master -> c0fafcf33f374fdf85590108835585a0411a0661

dreammaster dreammaster at scummvm.org
Thu Mar 5 19:23:31 CET 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
c0fafcf33f MADS: Fix mismatched delete/free releasing screen surface


Commit: c0fafcf33f374fdf85590108835585a0411a0661
    https://github.com/scummvm/scummvm/commit/c0fafcf33f374fdf85590108835585a0411a0661
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-03-05T12:24:25-05:00

Commit Message:
MADS: Fix mismatched delete/free releasing screen surface

Changed paths:
    engines/mads/screen.cpp



diff --git a/engines/mads/screen.cpp b/engines/mads/screen.cpp
index 60f3d8a..8db034c 100644
--- a/engines/mads/screen.cpp
+++ b/engines/mads/screen.cpp
@@ -569,7 +569,7 @@ void ScreenSurface::init() {
 }
 
 ScreenSurface::~ScreenSurface() {
-	delete[] _surfacePixels;
+	::free(_surfacePixels);
 }
 
 void ScreenSurface::copyRectToScreen(const Common::Rect &bounds) {






More information about the Scummvm-git-logs mailing list