Browse Source

kmsdrm: Fix leaking SDL_VideoDevice*

Brandon Schaefer 7 years ago
parent
commit
fca91451ba
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/video/kmsdrm/SDL_kmsdrmvideo.c

+ 2 - 0
src/video/kmsdrm/SDL_kmsdrmvideo.c

@@ -74,6 +74,8 @@ KMSDRM_Destroy(SDL_VideoDevice * device)
         SDL_free(device->driverdata);
         device->driverdata = NULL;
     }
+
+    SDL_free(device);
     SDL_KMSDRM_UnloadSymbols();
 }