--- a/src/video/psp/SDL_pspvideo.c Wed Aug 03 22:32:02 2016 +0200 +++ b/src/video/psp/SDL_pspvideo.c Wed Aug 03 22:32:20 2016 +0200 @@ -92,6 +92,7 @@ if (gldata == NULL) { SDL_OutOfMemory(); SDL_free(device); + SDL_free(phdata); return NULL; } device->gl_data = gldata;