Explorar el Código

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

Ryan C. Gordon hace 9 años
padre
commit
bc8778854e
Se han modificado 1 ficheros con 2 adiciones y 5 borrados
  1. 2 5
      src/video/raspberry/SDL_rpivideo.c

+ 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 *