From 72eb9ec9eab5efcb3aa99a962a80423e8c0a3232 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 3 Jan 2010 19:37:43 +0000 Subject: Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null before freeing it, which isn't necessary. svn-id: r46941 --- engines/lure/animseq.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/lure/animseq.cpp') diff --git a/engines/lure/animseq.cpp b/engines/lure/animseq.cpp index f53b532815..9c18cb33aa 100644 --- a/engines/lure/animseq.cpp +++ b/engines/lure/animseq.cpp @@ -213,8 +213,7 @@ AnimationSequence::AnimationSequence(uint16 screenId, Palette &palette, bool fa } AnimationSequence::~AnimationSequence() { - if (_lineRefs != NULL) - delete _lineRefs; + delete _lineRefs; delete _decodedData; // Renable GMM saving/loading now that the animation is done -- cgit v1.2.3