[Scummvm-cvs-logs] SF.net SVN: scummvm:[55229] scummvm/trunk/engines/parallaction
tdhs at users.sourceforge.net
tdhs at users.sourceforge.net
Thu Jan 13 18:26:00 CET 2011
Revision: 55229
http://scummvm.svn.sourceforge.net/scummvm/?rev=55229&view=rev
Author: tdhs
Date: 2011-01-13 17:26:00 +0000 (Thu, 13 Jan 2011)
Log Message:
-----------
PARALLACTION: Close Memory Leak in Big Red Adventure Subtitles.
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/exec_br.cpp
scummvm/trunk/engines/parallaction/parallaction_br.cpp
Modified: scummvm/trunk/engines/parallaction/exec_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/exec_br.cpp 2011-01-13 16:38:14 UTC (rev 55228)
+++ scummvm/trunk/engines/parallaction/exec_br.cpp 2011-01-13 17:26:00 UTC (rev 55229)
@@ -107,10 +107,14 @@
if (_subtitle[0]) {
_gfx->hideLabel(_subtitle[0]);
}
+ delete _subtitle[0];
+ _subtitle[0] = 0;
if (_subtitle[1]) {
_gfx->hideLabel(_subtitle[1]);
}
+ delete _subtitle[1];
+ _subtitle[1] = 0;
}
Modified: scummvm/trunk/engines/parallaction/parallaction_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction_br.cpp 2011-01-13 16:38:14 UTC (rev 55228)
+++ scummvm/trunk/engines/parallaction/parallaction_br.cpp 2011-01-13 17:26:00 UTC (rev 55229)
@@ -228,7 +228,6 @@
void Parallaction_br::freeLocation(bool removeAll) {
// free open location stuff
clearSubtitles();
- _subtitle[0] = _subtitle[1] = 0;
_localFlagNames->clear();
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