diff options
author | Nicola Mettifogo | 2009-02-26 09:12:29 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2009-02-26 09:12:29 +0000 |
commit | 3efffe511b2c9282f79ecfdb937e6b8fc1d330c1 (patch) | |
tree | 92eb8239d64a1e4e660c76ff4a054257faff05b0 /engines/parallaction/parallaction_br.cpp | |
parent | d5d006bb303ddce4401a11132f52e4d3e17f63ac (diff) | |
download | scummvm-rg350-3efffe511b2c9282f79ecfdb937e6b8fc1d330c1.tar.gz scummvm-rg350-3efffe511b2c9282f79ecfdb937e6b8fc1d330c1.tar.bz2 scummvm-rg350-3efffe511b2c9282f79ecfdb937e6b8fc1d330c1.zip |
Fixed crashes and leaks when quitting BRA from menu and splash screen.
svn-id: r38893
Diffstat (limited to 'engines/parallaction/parallaction_br.cpp')
-rw-r--r-- | engines/parallaction/parallaction_br.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/parallaction/parallaction_br.cpp b/engines/parallaction/parallaction_br.cpp index ac68bb084e..a792b073a2 100644 --- a/engines/parallaction/parallaction_br.cpp +++ b/engines/parallaction/parallaction_br.cpp @@ -100,9 +100,13 @@ Parallaction_br::~Parallaction_br() { freeFonts(); freeCharacter(); + delete _objects; + delete _locationParser; delete _programParser; + _location._animations.remove(_char._ani); + delete _walker; } @@ -141,15 +145,15 @@ Common::Error Parallaction_br::go() { } - void Parallaction_br::freeFonts() { delete _menuFont; - delete _dialogueFont; - _menuFont = 0; + + delete _dialogueFont; _dialogueFont = 0; + + // no need to delete _labelFont, since it is using the same buffer as _menuFont _labelFont = 0; - _introFont = 0; } |