fix memory leak
This commit is contained in:
parent
b0608d0c7c
commit
7d17fcdf1e
|
@ -1635,6 +1635,12 @@ finish_destroy_win(Display *dpy, Window id) {
|
|||
w->shadow_pict = None;
|
||||
}
|
||||
|
||||
/* fix leak, from freedesktop repo */
|
||||
if (w->shadow) {
|
||||
XRenderFreePicture (dpy, w->shadow);
|
||||
w->shadow = None;
|
||||
}
|
||||
|
||||
if (w->damage != None) {
|
||||
set_ignore(dpy, NextRequest(dpy));
|
||||
XDamageDestroy(dpy, w->damage);
|
||||
|
|
Loading…
Reference in New Issue