Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
raspberrypi: RPI_Destroy() should free the SDL_VideoDevice and its dr…
…iverdata.
  • Loading branch information
icculus committed Mar 1, 2017
1 parent 5a47ee0 commit bc87788
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/video/raspberry/SDL_rpivideo.c
Expand Up @@ -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 *
Expand Down

0 comments on commit bc87788

Please sign in to comment.