Fix a server resource leak on destroying windows.

This commit is contained in:
Dana Jansens 2008-02-13 11:24:32 -08:00 committed by Eric Anholt
parent 80754042c6
commit 73f6ed3310
1 changed files with 5 additions and 0 deletions

View File

@ -1620,6 +1620,11 @@ finish_destroy_win (Display *dpy, Window id, Bool gone)
XRenderFreePicture (dpy, w->shadowPict); XRenderFreePicture (dpy, w->shadowPict);
w->shadowPict = None; w->shadowPict = None;
} }
if (w->shadow)
{
XRenderFreePicture (dpy, w->shadow);
w->shadow = None;
}
if (w->damage != None) if (w->damage != None)
{ {
set_ignore (dpy, NextRequest (dpy)); set_ignore (dpy, NextRequest (dpy));