aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/video.h
diff options
context:
space:
mode:
authorSven Hesse2008-12-14 04:33:28 +0000
committerSven Hesse2008-12-14 04:33:28 +0000
commit5f8323bd50f958803107be6d64fa7dd9a9456bb7 (patch)
tree9cf1b17c0878d0d190cded7191e11eb1b6193068 /engines/gob/video.h
parent4d79c4c9b65f89be91867fe5b33a40051b365216 (diff)
downloadscummvm-rg350-5f8323bd50f958803107be6d64fa7dd9a9456bb7.tar.gz
scummvm-rg350-5f8323bd50f958803107be6d64fa7dd9a9456bb7.tar.bz2
scummvm-rg350-5f8323bd50f958803107be6d64fa7dd9a9456bb7.zip
Plugging leaks
svn-id: r35355
Diffstat (limited to 'engines/gob/video.h')
-rw-r--r--engines/gob/video.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/gob/video.h b/engines/gob/video.h
index 37b3afb317..0afd2b31e2 100644
--- a/engines/gob/video.h
+++ b/engines/gob/video.h
@@ -75,7 +75,11 @@ public:
int8 bitWidth;
byte *extraData;
FontDesc() : dataPtr(0), itemWidth(0), itemHeight(0), startItem(0),
- endItem(0), itemSize(0), bitWidth(0) {}
+ endItem(0), itemSize(0), bitWidth(0) {}
+ ~FontDesc() {
+ if (dataPtr)
+ delete[] (dataPtr - 4);
+ }
};
#define GDR_VERSION 4
@@ -177,7 +181,7 @@ public:
virtual void init() { }
Video(class GobEngine *vm);
- virtual ~Video() {}
+ virtual ~Video();
protected:
class VideoDriver *_videoDriver;