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:
attila 2003-01-02 14:33:55 +00:00
parent 57c11ac862
commit 4fd397ac89
1 changed files with 2 additions and 0 deletions

View File

@ -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 )