Fix a server resource leak on destroying windows. upstream
authorDana Jansens <danakj@orodu.net>
Wed, 13 Feb 2008 19:24:32 +0000 (11:24 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 13 Feb 2008 19:24:32 +0000 (11:24 -0800)
xcompmgr.c

index ef4259b..31ecc33 100644 (file)
@@ -1620,6 +1620,11 @@ finish_destroy_win (Display *dpy, Window id, Bool gone)
                XRenderFreePicture (dpy, w->shadowPict);
                w->shadowPict = None;
            }
                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));
            if (w->damage != None)
            {
                set_ignore (dpy, NextRequest (dpy));