Browse Source

Pandora: Fixed memory leak in video implementation.

Philipp Wiesemann 8 years ago
parent
commit
8d6cbdd235
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/video/pandora/SDL_pandora.c

+ 2 - 0
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 *