diff options
author | Sven Hesse | 2008-12-14 04:33:28 +0000 |
---|---|---|
committer | Sven Hesse | 2008-12-14 04:33:28 +0000 |
commit | 5f8323bd50f958803107be6d64fa7dd9a9456bb7 (patch) | |
tree | 9cf1b17c0878d0d190cded7191e11eb1b6193068 /engines/gob/video.h | |
parent | 4d79c4c9b65f89be91867fe5b33a40051b365216 (diff) | |
download | scummvm-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.h | 8 |
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; |