Pandora: Fixed memory leak in video implementation.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 20 Jul 2016 21:00:52 +0200
changeset 10208 49c460371a4a
parent 10207 e66f6ab2b059
child 10209 afd286e26823
Pandora: Fixed memory leak in video implementation.
src/video/pandora/SDL_pandora.c
--- a/src/video/pandora/SDL_pandora.c	Wed Jul 20 21:00:36 2016 +0200
+++ b/src/video/pandora/SDL_pandora.c	Wed Jul 20 21:00:52 2016 +0200
@@ -51,8 +51,10 @@
 PND_destroy(SDL_VideoDevice * device)
 {
     if (device->driverdata != NULL) {
+        SDL_free(device->driverdata);
         device->driverdata = NULL;
     }
+    SDL_free(device);
 }
 
 static SDL_VideoDevice *