diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index c10ef1cf8..9a09a9021 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -644,6 +644,7 @@ void SDL_DelVideoDisplay(int index) if (index < (_this->num_displays - 1)) { SDL_free(_this->displays[index].driverdata); + SDL_free(_this->displays[index].name); SDL_memmove(&_this->displays[index], &_this->displays[index + 1], (_this->num_displays - index - 1) * sizeof(_this->displays[index])); } --_this->num_displays;