mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-11 07:05:38 +00:00
raspberrypi: RPI_Destroy() should free the SDL_VideoDevice and its driverdata.
This commit is contained in:
parent
5a47ee0365
commit
bc8778854e
|
@ -59,11 +59,8 @@ RPI_Available(void)
|
|||
static void
|
||||
RPI_Destroy(SDL_VideoDevice * device)
|
||||
{
|
||||
/* SDL_VideoData *phdata = (SDL_VideoData *) device->driverdata; */
|
||||
|
||||
if (device->driverdata != NULL) {
|
||||
device->driverdata = NULL;
|
||||
}
|
||||
SDL_free(device->driverdata);
|
||||
SDL_free(device);
|
||||
}
|
||||
|
||||
static SDL_VideoDevice *
|
||||
|
|
Loading…
Reference in a new issue