SDL_MouseQuit(): clear mouse->cur_cursor (Bug 4530)
authorSylvain Becker <sylvain.becker@gmail.com>
Mon, 11 Mar 2019 15:31:46 +0100
changeset 126200010b9a064d3
parent 12619 8e52484226af
child 12621 6a60a1e87d10
SDL_MouseQuit(): clear mouse->cur_cursor (Bug 4530)
src/events/SDL_mouse.c
     1.1 --- a/src/events/SDL_mouse.c	Mon Mar 11 15:27:42 2019 +0100
     1.2 +++ b/src/events/SDL_mouse.c	Mon Mar 11 15:31:46 2019 +0100
     1.3 @@ -607,6 +607,7 @@
     1.4          cursor = next;
     1.5      }
     1.6      mouse->cursors = NULL;
     1.7 +    mouse->cur_cursor = NULL;
     1.8  
     1.9      if (mouse->def_cursor && mouse->FreeCursor) {
    1.10          mouse->FreeCursor(mouse->def_cursor);