diff options
author | Eugene Sandulenko | 2013-08-20 00:34:15 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-09-06 14:51:16 +0300 |
commit | 6ba453fa2a967f6081712efc5cb32c969b54472e (patch) | |
tree | b87bdc9d76857d2d3af298f7e5c9abac952df4ac /engines/fullpipe/gfx.cpp | |
parent | f0795656929e09e74f85c427cbf506e35eefc44f (diff) | |
download | scummvm-rg350-6ba453fa2a967f6081712efc5cb32c969b54472e.tar.gz scummvm-rg350-6ba453fa2a967f6081712efc5cb32c969b54472e.tar.bz2 scummvm-rg350-6ba453fa2a967f6081712efc5cb32c969b54472e.zip |
FULLPIPE: Fix number of bugs found by Coverity
Diffstat (limited to 'engines/fullpipe/gfx.cpp')
-rw-r--r-- | engines/fullpipe/gfx.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index 63245a19e0..82014426c2 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -139,6 +139,9 @@ PictureObject::PictureObject() { _ox = 0; _oy = 0; _picture = 0; + _ox2 = 0; + _oy2 = 0; + _pictureObject2List = 0; } PictureObject::PictureObject(PictureObject *src) : GameObject(src) { @@ -237,7 +240,6 @@ GameObject::GameObject() { _oy = 0; _priority = 0; _field_20 = 0; - _field_6 = 0; _field_8 = 0; _objectName = 0; } @@ -257,6 +259,10 @@ GameObject::GameObject(GameObject *src) { _field_8 = src->_field_8; } +GameObject::~GameObject() { + free(_objectName); +} + bool GameObject::load(MfcArchive &file) { debug(5, "GameObject::load()"); _okeyCode = 0; @@ -309,6 +315,9 @@ Picture::Picture() { _alpha = -1; _paletteData = 0; _convertedBitmap = 0; + _memoryObject2 = 0; + _width = 0; + _height = 0; } Picture::~Picture() { |