Skip to content
Permalink
Browse files

raspberrypi: RPI_Destroy() should free the SDL_VideoDevice and its dr…

…iverdata.
  • Loading branch information
icculus committed Mar 1, 2017
1 parent 5a47ee0 commit bc8778854ec874ad563af2fe366c29a7fe3e586d
Showing with 2 additions and 5 deletions.
  1. +2 −5 src/video/raspberry/SDL_rpivideo.c
@@ -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 *

0 comments on commit bc87788

Please sign in to comment.