From fca91451ba49f2d6f026ee3bc69523d3ffc9c199 Mon Sep 17 00:00:00 2001 From: Brandon Schaefer Date: Wed, 2 Aug 2017 13:51:14 -0700 Subject: [PATCH] kmsdrm: Fix leaking SDL_VideoDevice* --- src/video/kmsdrm/SDL_kmsdrmvideo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c index ef603579c..bb16837ee 100644 --- a/src/video/kmsdrm/SDL_kmsdrmvideo.c +++ b/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(); }