diff options
author | Nicola Mettifogo | 2008-07-09 13:27:09 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-07-09 13:27:09 +0000 |
commit | 12cefc4132ddb06ce56efd813c88f50d5e8b19ed (patch) | |
tree | 26af8c805dd2d19c720c57087ff45a0d0a1ef665 | |
parent | 18b48c74a9de417254badf23744d5c5f73c2966c (diff) | |
download | scummvm-rg350-12cefc4132ddb06ce56efd813c88f50d5e8b19ed.tar.gz scummvm-rg350-12cefc4132ddb06ce56efd813c88f50d5e8b19ed.tar.bz2 scummvm-rg350-12cefc4132ddb06ce56efd813c88f50d5e8b19ed.zip |
Fixed leaks in NS and BRA.
svn-id: r32976
-rw-r--r-- | engines/parallaction/graphics.cpp | 1 | ||||
-rw-r--r-- | engines/parallaction/objects.cpp | 3 | ||||
-rw-r--r-- | engines/parallaction/parallaction.cpp | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp index 93ebdd3a65..32d0e303eb 100644 --- a/engines/parallaction/graphics.cpp +++ b/engines/parallaction/graphics.cpp @@ -767,6 +767,7 @@ Gfx::Gfx(Parallaction* vm) : Gfx::~Gfx() { freeBackground(); + freeLabels(); return; } diff --git a/engines/parallaction/objects.cpp b/engines/parallaction/objects.cpp index 54afabc318..66025cf0f7 100644 --- a/engines/parallaction/objects.cpp +++ b/engines/parallaction/objects.cpp @@ -54,6 +54,7 @@ Animation::Animation() { Animation::~Animation() { free(_scriptName); + gfxobj->release(); } uint16 Animation::width() const { @@ -182,6 +183,8 @@ Zone::~Zone() { break; } + + free(_linkedName); } void Zone::getRect(Common::Rect& r) const { diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index ca99d2a789..b2146bd292 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -93,6 +93,7 @@ Parallaction::~Parallaction() { _gfx->clearGfxObjects(kGfxObjCharacter | kGfxObjNormal); hideDialogueStuff(); + delete _balloonMan; freeLocation(); freeCharacter(); |