Browse Source

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

Sylvain Becker 6 years ago
parent
commit
28f54ee439
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/events/SDL_mouse.c

+ 1 - 0
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);