diff options
author | Torbjörn Andersson | 2010-01-03 19:37:43 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2010-01-03 19:37:43 +0000 |
commit | 72eb9ec9eab5efcb3aa99a962a80423e8c0a3232 (patch) | |
tree | 032c9107838aefca6a166465a46fa7318bb82566 /engines/sci/gfx | |
parent | 910ffb53a0b6c74a965df9a1270cdfc3885252ec (diff) | |
download | scummvm-rg350-72eb9ec9eab5efcb3aa99a962a80423e8c0a3232.tar.gz scummvm-rg350-72eb9ec9eab5efcb3aa99a962a80423e8c0a3232.tar.bz2 scummvm-rg350-72eb9ec9eab5efcb3aa99a962a80423e8c0a3232.zip |
Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null
before freeing it, which isn't necessary.
svn-id: r46941
Diffstat (limited to 'engines/sci/gfx')
-rw-r--r-- | engines/sci/gfx/gfx_resource.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/sci/gfx/gfx_resource.cpp b/engines/sci/gfx/gfx_resource.cpp index fe2373e4e2..4a39b0d385 100644 --- a/engines/sci/gfx/gfx_resource.cpp +++ b/engines/sci/gfx/gfx_resource.cpp @@ -66,11 +66,9 @@ void gfxr_free_pic(gfxr_pic_t *pic) { pic->visual_map = NULL; pic->priority_map = NULL; pic->control_map = NULL; - if (pic->priorityTable) - free(pic->priorityTable); + free(pic->priorityTable); pic->priorityTable = NULL; - if (pic->undithered_buffer) - free(pic->undithered_buffer); + free(pic->undithered_buffer); pic->undithered_buffer = 0; free(pic); } |