diff src/video/gem/SDL_gemmouse.c @ 1336:3692456e7b0f

Use SDL_ prefixed versions of C library functions. FIXME: Change #include <stdlib.h> to #include "SDL_stdlib.h" Change #include <string.h> to #include "SDL_string.h" Make sure nothing else broke because of this...
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 06:59:48 +0000
parents c9b51268668f
children 604d73db6802
line wrap: on
line diff
--- a/src/video/gem/SDL_gemmouse.c	Mon Feb 06 17:28:04 2006 +0000
+++ b/src/video/gem/SDL_gemmouse.c	Tue Feb 07 06:59:48 2006 +0000
@@ -57,9 +57,9 @@
 	graf_mouse(ARROW, NULL);
 
 	if (cursor->mform_p != NULL)
-		free(cursor->mform_p);
+		SDL_free(cursor->mform_p);
 
-	free(cursor);
+	SDL_free(cursor);
 }
 
 WMcursor *GEM_CreateWMCursor(_THIS,
@@ -77,16 +77,16 @@
 	}
 
 	/* Allocate the cursor memory */
-	cursor = (WMcursor *)malloc(sizeof(WMcursor));
+	cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor));
 	if ( cursor == NULL ) {
 		SDL_OutOfMemory();
 		return(NULL);
 	}
 
 	/* Allocate mform */
-	new_mform = (MFORM *)malloc(sizeof(MFORM));		
+	new_mform = (MFORM *)SDL_malloc(sizeof(MFORM));		
 	if (new_mform == NULL) {
-		free(cursor);
+		SDL_free(cursor);
 		SDL_OutOfMemory();
 		return(NULL);
 	}