[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.127,1.128
Attila Kinali CVS
attila at mplayerhq.hu
Thu Jan 2 15:34:11 CET 2003
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv21868
Modified Files:
x11_common.c
Log Message:
fix bitmap leak pointed out by Pierre-Paul Lavoie <ppl at nbnet.nb.ca>
Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -r1.127 -r1.128
--- x11_common.c 1 Jan 2003 14:16:02 -0000 1.127
+++ x11_common.c 2 Jan 2003 14:33:55 -0000 1.128
@@ -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 )
More information about the MPlayer-cvslog
mailing list