From 68ca35c318b3f4b6f36e1e3650fd75fef7b6e022 Mon Sep 17 00:00:00 2001 From: Andrei Alexeyev Date: Wed, 11 Aug 2021 21:40:46 +0300 Subject: [PATCH] wayland: fix memleak in output listener --- src/video/wayland/SDL_waylandvideo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/wayland/SDL_waylandvideo.c b/src/video/wayland/SDL_waylandvideo.c index 01e553063..1cd67aaf4 100644 --- a/src/video/wayland/SDL_waylandvideo.c +++ b/src/video/wayland/SDL_waylandvideo.c @@ -391,6 +391,7 @@ display_handle_done(void *data, driverdata->placeholder.driverdata = driverdata; SDL_AddVideoDisplay(&driverdata->placeholder, SDL_FALSE); + SDL_free(driverdata->placeholder.name); SDL_zero(driverdata->placeholder); }