comparison libvo/x11_common.c @ 13953:3dbebe82fc37

3 memory leaks fixed Xlib funtions allocate memory that should be freed appropriately
author iive
date Mon, 15 Nov 2004 14:56:18 +0000
parents e632b43f0598
children 7032d122c733
comparison
equal deleted inserted replaced
13952:bcdf8a05ad45 13953:3dbebe82fc37
176 no_ptr = XCreatePixmapCursor(disp, bm_no, bm_no, &black, &black, 0, 0); 176 no_ptr = XCreatePixmapCursor(disp, bm_no, bm_no, &black, &black, 0, 0);
177 XDefineCursor(disp, win, no_ptr); 177 XDefineCursor(disp, win, no_ptr);
178 XFreeCursor(disp, no_ptr); 178 XFreeCursor(disp, no_ptr);
179 if (bm_no != None) 179 if (bm_no != None)
180 XFreePixmap(disp, bm_no); 180 XFreePixmap(disp, bm_no);
181 XFreeColors(disp,colormap,&black.pixel,1,0);
181 } 182 }
182 183
183 void vo_showcursor(Display * disp, Window win) 184 void vo_showcursor(Display * disp, Window win)
184 { 185 {
185 if (WinID == 0) 186 if (WinID == 0)