PSP: Fixed memory leak if video init failed.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 03 Aug 2016 22:32:20 +0200
changeset 10270 724516f210e6
parent 10269 efff2efeb166
child 10271 e8281b14970c
PSP: Fixed memory leak if video init failed.
src/video/psp/SDL_pspvideo.c
--- 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;