Call SDL_OutOfMemory() if SDL_malloc() fails. SDL-1.2
authorRyan C. Gordon
Wed, 06 Jan 2010 06:41:41 +0000
branchSDL-1.2
changeset 43953c35b8d3b9fc
parent 4394 42012a6afb5b
child 4396 f5d3f7fa071d
Call SDL_OutOfMemory() if SDL_malloc() fails.
src/joystick/SDL_joystick.c
     1.1 --- a/src/joystick/SDL_joystick.c	Thu Dec 17 14:33:00 2009 +0000
     1.2 +++ b/src/joystick/SDL_joystick.c	Wed Jan 06 06:41:41 2010 +0000
     1.3 @@ -113,6 +113,7 @@
     1.4  	/* Create and initialize the joystick */
     1.5  	joystick = (SDL_Joystick *)SDL_malloc((sizeof *joystick));
     1.6  	if ( !joystick ) {
     1.7 +		SDL_OutOfMemory();
     1.8  		return(NULL);
     1.9  	}
    1.10