diff options
author | Nicola Mettifogo | 2008-10-11 02:23:13 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-10-11 02:23:13 +0000 |
commit | 15d94dd614c0d98f85b04572e9733a431df30c8e (patch) | |
tree | b12164a71a1a014738418e33b8f2706156d2dda9 /engines | |
parent | 4fc69c4863a4ea5924e374a330d2ba5686c2f5ea (diff) | |
download | scummvm-rg350-15d94dd614c0d98f85b04572e9733a431df30c8e.tar.gz scummvm-rg350-15d94dd614c0d98f85b04572e9733a431df30c8e.tar.bz2 scummvm-rg350-15d94dd614c0d98f85b04572e9733a431df30c8e.zip |
Fixed crash when existing BRA: fonts were deallocated twice.
svn-id: r34766
Diffstat (limited to 'engines')
-rw-r--r-- | engines/parallaction/parallaction_br.cpp | 6 | ||||
-rw-r--r-- | engines/parallaction/parallaction_ns.cpp | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/engines/parallaction/parallaction_br.cpp b/engines/parallaction/parallaction_br.cpp index 8929efdcbc..835bcae47a 100644 --- a/engines/parallaction/parallaction_br.cpp +++ b/engines/parallaction/parallaction_br.cpp @@ -131,11 +131,13 @@ int Parallaction_br::go() { void Parallaction_br::freeFonts() { - delete _menuFont; delete _dialogueFont; - return; + _menuFont = 0; + _dialogueFont = 0; + _labelFont = 0; + _introFont = 0; } diff --git a/engines/parallaction/parallaction_ns.cpp b/engines/parallaction/parallaction_ns.cpp index f4a1ef03ec..a0fba08287 100644 --- a/engines/parallaction/parallaction_ns.cpp +++ b/engines/parallaction/parallaction_ns.cpp @@ -214,6 +214,10 @@ void Parallaction_ns::freeFonts() { delete _menuFont; delete _introFont; + _menuFont = 0; + _dialogueFont = 0; + _labelFont = 0; + _introFont = 0; } |