aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dc/display.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/dc/display.cpp')
-rw-r--r--backends/platform/dc/display.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/backends/platform/dc/display.cpp b/backends/platform/dc/display.cpp
index e89393b72c..35d181e21f 100644
--- a/backends/platform/dc/display.cpp
+++ b/backends/platform/dc/display.cpp
@@ -320,8 +320,7 @@ void OSystem_Dreamcast::setMouseCursor(const byte *buf, uint w, uint h,
break;
_mouseFormat = i;
- if (_ms_buf)
- free(_ms_buf);
+ free(_ms_buf);
if (_mouseFormat != 0)
w <<= 1;