mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 23:37:09 -05:00
Fixed potential free of uninitialized memory (thanks Simon!)
This commit is contained in:
parent
6abff120fd
commit
02e6f41344
|
|
@ -96,7 +96,7 @@ KMSDRM_Create(int devindex)
|
|||
device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
|
||||
if (device == NULL) {
|
||||
SDL_OutOfMemory();
|
||||
goto cleanup;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Initialize internal data */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user