Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed SDL_GameControllerMappingForGUID() crashing if no more memory a…
…vailable. The return value of SDL_malloc() was not checked and NULL therefore not handled. NULL returned by SDL_GameControllerMapping()/SDL_GameControllerMappingForGUID() now either means "no mapping" (as before) or "no memory" (just crashed before).
- Loading branch information