Pandora: Fixed memory leak in video implementation.
authorPhilipp Wiesemann
Wed, 20 Jul 2016 21:00:52 +0200
changeset 1020849c460371a4a
parent 10207 e66f6ab2b059
child 10209 afd286e26823
Pandora: Fixed memory leak in video implementation.
src/video/pandora/SDL_pandora.c
     1.1 --- a/src/video/pandora/SDL_pandora.c	Wed Jul 20 21:00:36 2016 +0200
     1.2 +++ b/src/video/pandora/SDL_pandora.c	Wed Jul 20 21:00:52 2016 +0200
     1.3 @@ -51,8 +51,10 @@
     1.4  PND_destroy(SDL_VideoDevice * device)
     1.5  {
     1.6      if (device->driverdata != NULL) {
     1.7 +        SDL_free(device->driverdata);
     1.8          device->driverdata = NULL;
     1.9      }
    1.10 +    SDL_free(device);
    1.11  }
    1.12  
    1.13  static SDL_VideoDevice *