[Scummvm-cvs-logs] SF.net SVN: scummvm:[35070] scummvm/trunk/graphics/dxa_player.cpp

cyx at users.sourceforge.net cyx at users.sourceforge.net
Sat Nov 15 03:41:38 CET 2008


Revision: 35070
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35070&view=rev
Author:   cyx
Date:     2008-11-15 02:41:37 +0000 (Sat, 15 Nov 2008)

Log Message:
-----------
added missing File destructor call if file can't be read

Modified Paths:
--------------
    scummvm/trunk/graphics/dxa_player.cpp

Modified: scummvm/trunk/graphics/dxa_player.cpp
===================================================================
--- scummvm/trunk/graphics/dxa_player.cpp	2008-11-15 02:32:05 UTC (rev 35069)
+++ scummvm/trunk/graphics/dxa_player.cpp	2008-11-15 02:41:37 UTC (rev 35070)
@@ -62,6 +62,7 @@
 }
 
 DXAPlayer::~DXAPlayer() {
+	closeFile();
 }
 
 int DXAPlayer::getWidth() {
@@ -94,6 +95,7 @@
 
 	Common::File *file = new Common::File();
 	if (!file->open(filename)) {
+		delete file;
 		return 0;
 	}
 


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