From e20d53a8692cde23f9057088bb9a3a2d7b986f1e Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 1 Aug 2004 07:32:27 +0000 Subject: [PATCH] More correct Anim destructor svn-id: r14410 --- saga/animation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/saga/animation.cpp b/saga/animation.cpp index 0a437a102ef..663da542eac 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;