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(); }