diff options
| -rw-r--r-- | common/main.cpp | 1 | ||||
| -rw-r--r-- | sword2/driver/_mouse.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/common/main.cpp b/common/main.cpp index 2941f2cf79..7a847f5770 100644 --- a/common/main.cpp +++ b/common/main.cpp @@ -238,7 +238,6 @@ int main(int argc, char *argv[]) { // ...and quit (the return 0 should never be reached) system->quit(); delete system; - free((void *)version_settings); // allocated in GameDetector return 0; } diff --git a/sword2/driver/_mouse.cpp b/sword2/driver/_mouse.cpp index 97dbd1ca7e..029e49beea 100644 --- a/sword2/driver/_mouse.cpp +++ b/sword2/driver/_mouse.cpp @@ -295,7 +295,7 @@ void DrawMouse(void) { mouse_width += deltaX; mouse_height += deltaY; - if (mouse_width * mouse_height > sizeof(_mouseData)) { + if ((uint32)(mouse_width * mouse_height) > sizeof(_mouseData)) { warning("Mouse cursor too large"); return; } |
