# HG changeset patch # User henry # Date 1039864477 0 # Node ID 9dceb6494cb57d5771de84d897a219fbdf9b1845 # Parent 694cda2f75d3f89e38597681cad6b18aafb9f3fb memory leak diff -r 694cda2f75d3 -r 9dceb6494cb5 libvo/x11_common.c --- a/libvo/x11_common.c Sat Dec 14 11:09:06 2002 +0000 +++ b/libvo/x11_common.c Sat Dec 14 11:14:37 2002 +0000 @@ -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 }