aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar attila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-02 14:33:55 +0000
committerGravatar attila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-02 14:33:55 +0000
commit4fd397ac8931a6a674f7c348171c10ca1d3c10fd (patch)
tree704f9f12e36e4f17e32ede3408403d1f3188e81b
parent57c11ac862e19097833ef7f861b5af35bbc5a4f4 (diff)
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
-rw-r--r--libvo/x11_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index c29d17cbed..7b35f5ba08 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -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 )