raspberrypi: RPI_Destroy() should free the SDL_VideoDevice and its driverdata.

This commit is contained in:
Ryan C. Gordon 2017-02-28 19:48:52 -05:00
parent 5a47ee0365
commit bc8778854e
1 changed files with 2 additions and 5 deletions

View File

@ -59,11 +59,8 @@ RPI_Available(void)
static void static void
RPI_Destroy(SDL_VideoDevice * device) RPI_Destroy(SDL_VideoDevice * device)
{ {
/* SDL_VideoData *phdata = (SDL_VideoData *) device->driverdata; */ SDL_free(device->driverdata);
SDL_free(device);
if (device->driverdata != NULL) {
device->driverdata = NULL;
}
} }
static SDL_VideoDevice * static SDL_VideoDevice *