aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2014-04-14 22:47:38 +0300
committerEugene Sandulenko2014-04-14 22:47:38 +0300
commit98fc589434b18f85a776fb31f1784c540e1ae687 (patch)
treea1db64298681b9af0f6062186f683ea979899c9f
parent975877b8ed689fd021e1d25d9eeaef01bd97d202 (diff)
downloadscummvm-rg350-98fc589434b18f85a776fb31f1784c540e1ae687.tar.gz
scummvm-rg350-98fc589434b18f85a776fb31f1784c540e1ae687.tar.bz2
scummvm-rg350-98fc589434b18f85a776fb31f1784c540e1ae687.zip
FULLPIPE: Implement Background::~Background()
-rw-r--r--engines/fullpipe/gfx.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index 137af86f48..26ac4ab824 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -90,7 +90,16 @@ Background::Background() {
}
Background::~Background() {
- warning("STUB: Background::~Background()");
+ _picObjList.clear();
+
+ for (int i = 0; i < _bigPictureArray1Count; i++) {
+ for (int j = 0; j < _bigPictureArray2Count; j++)
+ delete _bigPictureArray[i][j];
+
+ free(_bigPictureArray[i]);
+ }
+
+ free(_bigPictureArray);
}
bool Background::load(MfcArchive &file) {