kmsdrm: Fix leaking SDL_VideoDevice*
authorBrandon Schaefer <brandon.schaefer@canonical.com>
Wed, 02 Aug 2017 13:51:14 -0700
changeset 11179fa4a78f63288
parent 11178 0ef6b8b9ca6d
child 11180 2fc961ef764e
kmsdrm: Fix leaking SDL_VideoDevice*
src/video/kmsdrm/SDL_kmsdrmvideo.c
     1.1 --- a/src/video/kmsdrm/SDL_kmsdrmvideo.c	Wed Aug 02 13:38:46 2017 -0700
     1.2 +++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c	Wed Aug 02 13:51:14 2017 -0700
     1.3 @@ -74,6 +74,8 @@
     1.4          SDL_free(device->driverdata);
     1.5          device->driverdata = NULL;
     1.6      }
     1.7 +
     1.8 +    SDL_free(device);
     1.9      SDL_KMSDRM_UnloadSymbols();
    1.10  }
    1.11