ソースを参照

PSP: Fixed memory leak if video init failed.

Philipp Wiesemann 9 年 前
コミット
82c94a3f79
1 ファイル変更1 行追加0 行削除
  1. 1 0
      src/video/psp/SDL_pspvideo.c

+ 1 - 0
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;