[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.117,1.118
Jindrich Makovicka CVS
henry at mplayerhq.hu
Sat Dec 14 12:14:40 CET 2002
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv31011
Modified Files:
x11_common.c
Log Message:
memory leak
Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -r1.117 -r1.118
--- x11_common.c 14 Dec 2002 11:09:06 -0000 1.117
+++ x11_common.c 14 Dec 2002 11:14:37 -0000 1.118
@@ -696,9 +696,13 @@
arg2=XInternAtom( mDisplay,"_NET_WM_STATE_ABOVE",False );
if ( Success == XGetWindowProperty( mDisplay,vo_window,type,0,16384,False,AnyPropertyType,&type,&format,&nitems,&bytesafter,(unsigned char**)(&args) ) && nitems > 0 && format == 32) {
for (i = 0; i < nitems; i++) {
- if (((Atom)args[i] == arg1) || ((Atom)args[i] == arg2)) return;
+ if (((Atom)args[i] == arg1) || ((Atom)args[i] == arg2)) {
+ XFree( args );
+ return;
+ }
}
}
+ XFree( args );
// State was not set, continue with GNOME hints
}
More information about the MPlayer-cvslog
mailing list