aboutsummaryrefslogtreecommitdiffstats
path: root/xcompmgr.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-02-13 11:24:32 -0800
committerEric Anholt <eric@anholt.net>2008-02-13 11:24:32 -0800
commit73f6ed3310d15300ba38f6a338d640705a83ef36 (patch)
tree21baf5044d918e06cce374aa6c8fd0650a96fe02 /xcompmgr.c
parentBug #13073: Fix broken word-wrapping in ChangeLog generation. (diff)
downloadxcman-73f6ed3310d15300ba38f6a338d640705a83ef36.tar.gz
xcman-73f6ed3310d15300ba38f6a338d640705a83ef36.tar.bz2
xcman-73f6ed3310d15300ba38f6a338d640705a83ef36.tar.xz
Fix a server resource leak on destroying windows.
Diffstat (limited to '')
-rw-r--r--xcompmgr.c5
1 files changed, 5 insertions, 0 deletions
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));