mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-17 14:47:19 +01:00
PSP: Fixed memory leak if video init failed.
This commit is contained in:
parent
9f97ee8a85
commit
82c94a3f79
@ -92,6 +92,7 @@ PSP_Create()
|
|||||||
if (gldata == NULL) {
|
if (gldata == NULL) {
|
||||||
SDL_OutOfMemory();
|
SDL_OutOfMemory();
|
||||||
SDL_free(device);
|
SDL_free(device);
|
||||||
|
SDL_free(phdata);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
device->gl_data = gldata;
|
device->gl_data = gldata;
|
||||||
|
Loading…
Reference in New Issue
Block a user