PSP: Fixed memory leak if video init failed.
This commit is contained in:
parent
d932507b4e
commit
f73dc1f190
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ PSP_Create()
|
|||
if (gldata == NULL) {
|
||||
SDL_OutOfMemory();
|
||||
SDL_free(device);
|
||||
SDL_free(phdata);
|
||||
return NULL;
|
||||
}
|
||||
device->gl_data = gldata;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue