aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/exec_br.cpp
diff options
context:
space:
mode:
authorDavid Turner2011-01-13 17:26:00 +0000
committerDavid Turner2011-01-13 17:26:00 +0000
commit9118d2915cf12f5bfac36895e4628358882fcfa0 (patch)
treed911315280f17b51ec46b362ca51ffa2d738ff32 /engines/parallaction/exec_br.cpp
parentda6fdff421d8f8ccb37d3c31c12dec12fab4cea4 (diff)
downloadscummvm-rg350-9118d2915cf12f5bfac36895e4628358882fcfa0.tar.gz
scummvm-rg350-9118d2915cf12f5bfac36895e4628358882fcfa0.tar.bz2
scummvm-rg350-9118d2915cf12f5bfac36895e4628358882fcfa0.zip
PARALLACTION: Close Memory Leak in Big Red Adventure Subtitles.
svn-id: r55229
Diffstat (limited to 'engines/parallaction/exec_br.cpp')
-rw-r--r--engines/parallaction/exec_br.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/parallaction/exec_br.cpp b/engines/parallaction/exec_br.cpp
index 1d8724e2d8..99aa27b30f 100644
--- a/engines/parallaction/exec_br.cpp
+++ b/engines/parallaction/exec_br.cpp
@@ -107,10 +107,14 @@ void Parallaction_br::clearSubtitles() {
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;
}