summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/x11_common.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 598e8cebbb..2afbb3d638 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -696,9 +696,13 @@ void vo_x11_setlayer( int layer )
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
}