wayland: fix memleak in output listener

main
Andrei Alexeyev 2021-08-11 21:40:46 +03:00 committed by Sam Lantinga
parent e9179314c4
commit 68ca35c318
1 changed files with 1 additions and 0 deletions

View File

@ -391,6 +391,7 @@ display_handle_done(void *data,
driverdata->placeholder.driverdata = driverdata; driverdata->placeholder.driverdata = driverdata;
SDL_AddVideoDisplay(&driverdata->placeholder, SDL_FALSE); SDL_AddVideoDisplay(&driverdata->placeholder, SDL_FALSE);
SDL_free(driverdata->placeholder.name);
SDL_zero(driverdata->placeholder); SDL_zero(driverdata->placeholder);
} }