[Scummvm-cvs-logs] SF.net SVN: scummvm:[34766] scummvm/trunk/engines/parallaction
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Sat Oct 11 04:23:13 CEST 2008
Revision: 34766
http://scummvm.svn.sourceforge.net/scummvm/?rev=34766&view=rev
Author: peres001
Date: 2008-10-11 02:23:13 +0000 (Sat, 11 Oct 2008)
Log Message:
-----------
Fixed crash when existing BRA: fonts were deallocated twice.
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/parallaction_br.cpp
scummvm/trunk/engines/parallaction/parallaction_ns.cpp
Modified: scummvm/trunk/engines/parallaction/parallaction_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction_br.cpp 2008-10-10 04:17:34 UTC (rev 34765)
+++ scummvm/trunk/engines/parallaction/parallaction_br.cpp 2008-10-11 02:23:13 UTC (rev 34766)
@@ -131,11 +131,13 @@
void Parallaction_br::freeFonts() {
-
delete _menuFont;
delete _dialogueFont;
- return;
+ _menuFont = 0;
+ _dialogueFont = 0;
+ _labelFont = 0;
+ _introFont = 0;
}
Modified: scummvm/trunk/engines/parallaction/parallaction_ns.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction_ns.cpp 2008-10-10 04:17:34 UTC (rev 34765)
+++ scummvm/trunk/engines/parallaction/parallaction_ns.cpp 2008-10-11 02:23:13 UTC (rev 34766)
@@ -214,6 +214,10 @@
delete _menuFont;
delete _introFont;
+ _menuFont = 0;
+ _dialogueFont = 0;
+ _labelFont = 0;
+ _introFont = 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