changeset 8716:ef36186ca7e0

fix bitmap leak pointed out by Pierre-Paul Lavoie <ppl@nbnet.nb.ca>
author attila
date Thu, 02 Jan 2003 14:33:55 +0000
parents 165d62ad8155
children 2df4e9d9922d
files libvo/x11_common.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Thu Jan 02 13:10:26 2003 +0000
+++ b/libvo/x11_common.c	Thu Jan 02 14:33:55 2003 +0000
@@ -108,6 +108,8 @@
 	no_ptr=XCreatePixmapCursor(disp, bm_no, bm_no,&black, &black,0, 0);									          
 	XDefineCursor(disp,win,no_ptr);
 	XFreeCursor( disp,no_ptr );
+	if (bm_no != None)
+		XFreePixmap(disp, bm_no);
 }
 
 void vo_showcursor( Display *disp, Window win )