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); }