From 73f6ed3310d15300ba38f6a338d640705a83ef36 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 13 Feb 2008 11:24:32 -0800 Subject: Fix a server resource leak on destroying windows. --- xcompmgr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xcompmgr.c b/xcompmgr.c index ef4259b..31ecc33 100644 --- a/xcompmgr.c +++ b/xcompmgr.c @@ -1620,6 +1620,11 @@ finish_destroy_win (Display *dpy, Window id, Bool gone) XRenderFreePicture (dpy, w->shadowPict); w->shadowPict = None; } + if (w->shadow) + { + XRenderFreePicture (dpy, w->shadow); + w->shadow = None; + } if (w->damage != None) { set_ignore (dpy, NextRequest (dpy)); -- cgit v1.2.3