From 82c94a3f795150dfa16122232554719032b63cae Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Wed, 3 Aug 2016 22:32:20 +0200 Subject: [PATCH] PSP: Fixed memory leak if video init failed. --- src/video/psp/SDL_pspvideo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/psp/SDL_pspvideo.c b/src/video/psp/SDL_pspvideo.c index d43c76078..381e4899e 100644 --- a/src/video/psp/SDL_pspvideo.c +++ b/src/video/psp/SDL_pspvideo.c @@ -92,6 +92,7 @@ PSP_Create() if (gldata == NULL) { SDL_OutOfMemory(); SDL_free(device); + SDL_free(phdata); return NULL; } device->gl_data = gldata;