changeset 8446:9dceb6494cb5

memory leak
author henry
date Sat, 14 Dec 2002 11:14:37 +0000
parents 694cda2f75d3
children 9c64428179b6
files libvo/x11_common.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
   }