diff options
author | Eugene Sandulenko | 2004-08-01 07:32:27 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-08-01 07:32:27 +0000 |
commit | e20d53a8692cde23f9057088bb9a3a2d7b986f1e (patch) | |
tree | 0be3f4ae6017b08303d87b4f78b39814df9e0b5d /saga | |
parent | d4c84fefdec61200a0f6eeac4d75fd28f16b9970 (diff) | |
download | scummvm-rg350-e20d53a8692cde23f9057088bb9a3a2d7b986f1e.tar.gz scummvm-rg350-e20d53a8692cde23f9057088bb9a3a2d7b986f1e.tar.bz2 scummvm-rg350-e20d53a8692cde23f9057088bb9a3a2d7b986f1e.zip |
More correct Anim destructor
svn-id: r14410
Diffstat (limited to 'saga')
-rw-r--r-- | saga/animation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/saga/animation.cpp b/saga/animation.cpp index 0a437a102e..663da542ea 100644 --- a/saga/animation.cpp +++ b/saga/animation.cpp @@ -58,7 +58,8 @@ Anim::~Anim(void) { uint16 i; for (i = 0; i < R_MAX_ANIMATIONS; i++) { - free(_anim_tbl[i]); + if (_anim_tbl[i]) + free(_anim_tbl[i]); } _initialized = false; |