From 9c96ec9a50056b1c414748775a90fa2ea38e91b5 Mon Sep 17 00:00:00 2001 From: henry Date: Sat, 14 Dec 2002 11:14:37 +0000 Subject: memory leak git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8447 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/x11_common.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.3