Commit 8d6cbdd235d033e0007e0314178aff053ad9bf58

Philipp Wiesemann 2016-07-20T21:00:52

Pandora: Fixed memory leak in video implementation.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/video/pandora/SDL_pandora.c b/src/video/pandora/SDL_pandora.c
index 4bfaa23..7afa543 100644
--- a/src/video/pandora/SDL_pandora.c
+++ b/src/video/pandora/SDL_pandora.c
@@ -51,8 +51,10 @@ static void
 PND_destroy(SDL_VideoDevice * device)
 {
     if (device->driverdata != NULL) {
+        SDL_free(device->driverdata);
         device->driverdata = NULL;
     }
+    SDL_free(device);
 }
 
 static SDL_VideoDevice *