Commit 28f54ee43908c420a6093f8280a5a26cecb1d650

Sylvain Becker 2019-03-11T15:31:46

SDL_MouseQuit(): clear mouse->cur_cursor (Bug 4530)

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c
index 8a87e54..969b33d 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);