mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-03-22 23:45:06 +00:00
video: Minor cleanup in SDL_VideoQuit.
(This code changed in SDL3, no need to cherry-pick it to there.)
This commit is contained in:
parent
04ff593bf5
commit
1f4e86d61c
|
@ -3355,18 +3355,14 @@ void SDL_VideoQuit(void)
|
|||
SDL_VideoDisplay *display = &_this->displays[i];
|
||||
SDL_ResetDisplayModes(i);
|
||||
SDL_free(display->desktop_mode.driverdata);
|
||||
display->desktop_mode.driverdata = NULL;
|
||||
SDL_free(display->driverdata);
|
||||
display->driverdata = NULL;
|
||||
}
|
||||
if (_this->displays) {
|
||||
for (i = 0; i < _this->num_displays; ++i) {
|
||||
SDL_free(_this->displays[i].name);
|
||||
}
|
||||
SDL_free(_this->displays);
|
||||
_this->displays = NULL;
|
||||
_this->num_displays = 0;
|
||||
SDL_free(display->name);
|
||||
}
|
||||
|
||||
SDL_free(_this->displays);
|
||||
_this->displays = NULL;
|
||||
_this->num_displays = 0;
|
||||
|
||||
SDL_free(_this->clipboard_text);
|
||||
_this->clipboard_text = NULL;
|
||||
_this->free(_this);
|
||||
|
|
Loading…
Reference in a new issue