PSP: Fixed memory leak if video init failed.

This commit is contained in:
Philipp Wiesemann 2016-08-03 22:32:20 +02:00
parent d932507b4e
commit f73dc1f190

View file

@ -92,6 +92,7 @@ PSP_Create()
if (gldata == NULL) {
SDL_OutOfMemory();
SDL_free(device);
SDL_free(phdata);
return NULL;
}
device->gl_data = gldata;