src/video/x11/SDL_x11mouse.c
changeset 888 07def9d03315
parent 769 b8d311d90021
child 1168 045f186426e1
--- a/src/video/x11/SDL_x11mouse.c	Sun May 16 17:19:48 2004 +0000
+++ b/src/video/x11/SDL_x11mouse.c	Sun May 16 17:40:32 2004 +0000
@@ -142,6 +142,8 @@
 	/* Create the cursor */
 	cursor->x_cursor = XCreatePixmapCursor(SDL_Display, data_pixmap,
 				mask_pixmap, &black, &white, hot_x, hot_y);
+	XFreePixmap(SDL_Display, data_pixmap);
+	XFreePixmap(SDL_Display, mask_pixmap);
 
 	/* Release the event thread */
 	XSync(SDL_Display, False);