mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-31 00:09:19 +01:00
Wayland: touch events, use of memory after it is freed
This commit is contained in:
parent
86ae245bc0
commit
88ba6798e9
@ -151,11 +151,15 @@ touch_del(SDL_TouchID id, float* x, float* y, struct wl_surface **surface)
|
|||||||
touch_points.tail = tp->prev;
|
touch_points.tail = tp->prev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
struct SDL_WaylandTouchPoint *next = tp->next;
|
||||||
SDL_free(tp);
|
SDL_free(tp);
|
||||||
|
tp = next;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
tp = tp->next;
|
tp = tp->next;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct wl_surface*
|
static struct wl_surface*
|
||||||
|
Loading…
Reference in New Issue
Block a user