[Scummvm-cvs-logs] SF.net SVN: scummvm:[54166]	scummvm/trunk/engines/mohawk/graphics.cpp
    mthreepwood at users.sourceforge.net 
    mthreepwood at users.sourceforge.net
       
    Tue Nov  9 19:58:46 CET 2010
    
    
  
Revision: 54166
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54166&view=rev
Author:   mthreepwood
Date:     2010-11-09 18:58:44 +0000 (Tue, 09 Nov 2010)
Log Message:
-----------
MOHAWK: Fix one more memory leak (hopefully the last :))
Modified Paths:
--------------
    scummvm/trunk/engines/mohawk/graphics.cpp
Modified: scummvm/trunk/engines/mohawk/graphics.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/graphics.cpp	2010-11-09 18:52:29 UTC (rev 54165)
+++ scummvm/trunk/engines/mohawk/graphics.cpp	2010-11-09 18:58:44 UTC (rev 54166)
@@ -245,6 +245,7 @@
 		CursorMan.replaceCursor((byte *)data->_surface->pixels, data->_surface->w, data->_surface->h, hotspotX, hotspotY, _pixelFormat.RGBToColor(255, 255, 255), 1, &_pixelFormat);
 
 	_vm->_needsUpdate = true;
+	delete data;
 }
 
 void MystGraphics::drawRect(Common::Rect rect, bool active) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
    
    
More information about the Scummvm-git-logs
mailing list