diff options
author | Torbjörn Andersson | 2010-01-22 19:05:02 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2010-01-22 19:05:02 +0000 |
commit | 48184679086094cc5d6067de8c31a6823fc71732 (patch) | |
tree | dd366cf38861efbf803aa194e455577efcea8871 /backends/platform/PalmOS | |
parent | 8f41cc0631914a6a743a1efa5275d8fa399b4f12 (diff) | |
download | scummvm-rg350-48184679086094cc5d6067de8c31a6823fc71732.tar.gz scummvm-rg350-48184679086094cc5d6067de8c31a6823fc71732.tar.bz2 scummvm-rg350-48184679086094cc5d6067de8c31a6823fc71732.zip |
Silenced some more cppcheck warnings. Some of these may seem silly, but the way
I figure it the changes are harmless at worst, and making them will make it
easier to find real errors in the (still quite long) list of warnings.
svn-id: r47443
Diffstat (limited to 'backends/platform/PalmOS')
-rw-r--r-- | backends/platform/PalmOS/Src/base_mouse.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/backends/platform/PalmOS/Src/base_mouse.cpp b/backends/platform/PalmOS/Src/base_mouse.cpp index 93a1fd2209..053a0ed3a7 100644 --- a/backends/platform/PalmOS/Src/base_mouse.cpp +++ b/backends/platform/PalmOS/Src/base_mouse.cpp @@ -55,11 +55,8 @@ void OSystem_PalmBase::setMouseCursor(const byte *buf, uint w, uint h, int hotsp _mouseCurState.w = w; _mouseCurState.h = h; - if (_mouseDataP) - free(_mouseDataP); - - if (_mouseBackupP) - free(_mouseBackupP); + free(_mouseDataP); + free(_mouseBackupP); _mouseDataP = (byte *)malloc(w * h); _mouseBackupP = (byte *)malloc(w * h * 2); // if 16bit = *2 |