From 8d6cbdd235d033e0007e0314178aff053ad9bf58 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Wed, 20 Jul 2016 21:00:52 +0200 Subject: [PATCH] Pandora: Fixed memory leak in video implementation. --- src/video/pandora/SDL_pandora.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/pandora/SDL_pandora.c b/src/video/pandora/SDL_pandora.c index 4bfaa234b..7afa54306 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 *