mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fixed potential free of uninitialized memory (thanks Simon!)
This commit is contained in:
parent
56363ebf61
commit
4be066707d
@ -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