Commit 68ca35c318b3f4b6f36e1e3650fd75fef7b6e022

Andrei Alexeyev 2021-08-11T21:40:46

wayland: fix memleak in output listener

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/video/wayland/SDL_waylandvideo.c b/src/video/wayland/SDL_waylandvideo.c
index 01e5530..1cd67aa 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);
 }