mirror of https://github.com/mpv-player/mpv
fix bitmap leak pointed out by Pierre-Paul Lavoie <ppl@nbnet.nb.ca>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8717 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
57c11ac862
commit
4fd397ac89
|
@ -108,6 +108,8 @@ void vo_hidecursor ( Display *disp , Window win )
|
|||
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 )
|
||||
|
|
Loading…
Reference in New Issue