[Scummvm-cvs-logs] SF.net SVN: scummvm:[41510] scummvm/branches/gsoc2009-draci/engines/draci/ font.cpp

dkasak13 at users.sourceforge.net dkasak13 at users.sourceforge.net
Sun Jun 14 15:10:12 CEST 2009


Revision: 41510
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41510&view=rev
Author:   dkasak13
Date:     2009-06-14 13:10:12 +0000 (Sun, 14 Jun 2009)

Log Message:
-----------
Removed superfluous checks for NULL in DraciFont::freeFont().

Modified Paths:
--------------
    scummvm/branches/gsoc2009-draci/engines/draci/font.cpp

Modified: scummvm/branches/gsoc2009-draci/engines/draci/font.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/font.cpp	2009-06-14 12:44:12 UTC (rev 41509)
+++ scummvm/branches/gsoc2009-draci/engines/draci/font.cpp	2009-06-14 13:10:12 UTC (rev 41510)
@@ -96,11 +96,8 @@
 }
 
 void DraciFont::freeFont() {
-	// If there is a font already loaded, free it
-	if (_charData) {	
-		delete[] _charWidths;
-		delete[] _charData;
-	}
+	delete[] _charWidths;
+	delete[] _charData;
 }
 
 uint8 DraciFont::getCharWidth(uint8 chr) const {
@@ -109,6 +106,7 @@
 
 /**
  * @brief Draw a char to a Graphics::Surface
+ *
  * @param dst 	Pointer to the destination surface
  * @param chr 	Character to draw (ASCII value)
  * @param tx  	Horizontal offset on the surface


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