src/video/x11/SDL_x11mouse.c
branchSDL-1.2
changeset 3930 79a4c9017550
parent 1740 db7e15a99cb3
child 4159 a1b03ba2fcd0
--- a/src/video/x11/SDL_x11mouse.c	Sun Apr 01 03:27:45 2007 +0000
+++ b/src/video/x11/SDL_x11mouse.c	Wed Apr 04 09:15:39 2007 +0000
@@ -216,11 +216,11 @@
 			mouse_param = NULL;
 		}
 	}
-	if ( mouse_param_buf ) {
+	if ( i == 3 ) {
 		XChangePointerControl(SDL_Display, True, True,
 			accel_value[0], accel_value[1], accel_value[2]);
-		SDL_free(mouse_param_buf);
 	}
+	SDL_stack_free(mouse_param_buf);
 }
 
 /* Check to see if we need to enter or leave mouse relative mode */