[Commits] SDL: Fixed bug 4011 - Wayland: fix free cursor

libsdl.org revision control commits-owner at libsdl.org
Wed Jan 3 10:00:25 PST 2018


details:   https://hg.libsdl.org/SDL/rev/a9a3023d29f9
changeset: 11812:a9a3023d29f9
user:      Sam Lantinga <slouken at libsdl.org>
date:      Wed Jan 03 10:07:27 2018 -0800
description:
Fixed bug 4011 - Wayland: fix free cursor

Vladimir

Sometimes SDL application crashes on cursor free.

Patch tested under Centos 7 + weston

diffstat:

 src/video/wayland/SDL_waylandevents.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 5d94cb6b24d3 -r a9a3023d29f9 src/video/wayland/SDL_waylandevents.c
--- a/src/video/wayland/SDL_waylandevents.c	Wed Jan 03 10:03:25 2018 -0800
+++ b/src/video/wayland/SDL_waylandevents.c	Wed Jan 03 10:07:27 2018 -0800
@@ -588,6 +588,7 @@
     } else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && input->pointer) {
         wl_pointer_destroy(input->pointer);
         input->pointer = NULL;
+        input->display->pointer = NULL;
     }
 
     if ((caps & WL_SEAT_CAPABILITY_TOUCH) && !input->touch) {


More information about the commits mailing list