From 28f54ee43908c420a6093f8280a5a26cecb1d650 Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Mon, 11 Mar 2019 15:31:46 +0100 Subject: [PATCH] SDL_MouseQuit(): clear mouse->cur_cursor (Bug 4530) --- src/events/SDL_mouse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c index 8a87e546a..969b33d45 100644 --- a/src/events/SDL_mouse.c +++ b/src/events/SDL_mouse.c @@ -607,6 +607,7 @@ SDL_MouseQuit(void) cursor = next; } mouse->cursors = NULL; + mouse->cur_cursor = NULL; if (mouse->def_cursor && mouse->FreeCursor) { mouse->FreeCursor(mouse->def_cursor);