summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-14 11:14:37 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-14 11:14:37 +0000
commit9c96ec9a50056b1c414748775a90fa2ea38e91b5 (patch)
tree1ed5c17b9548369428799d76aa61664e5a23fc57 /libvo
parent6ab9415443d4ccfd7fbfe7b36c7d81b6175e9d99 (diff)
downloadmpv-9c96ec9a50056b1c414748775a90fa2ea38e91b5.tar.bz2
mpv-9c96ec9a50056b1c414748775a90fa2ea38e91b5.tar.xz
memory leak
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8447 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-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
}