fix memory leak
This commit is contained in:
parent
b0608d0c7c
commit
7d17fcdf1e
24
xcompmgr.c
24
xcompmgr.c
|
@ -431,17 +431,17 @@ make_gaussian_map(Display *dpy, double r) {
|
|||
/*
|
||||
* A picture will help
|
||||
*
|
||||
* -center 0 width width+center
|
||||
* -center 0 width width+center
|
||||
* -center +-----+-------------------+-----+
|
||||
* | | | |
|
||||
* | | | |
|
||||
* 0 +-----+-------------------+-----+
|
||||
* | | | |
|
||||
* | | | |
|
||||
* | | | |
|
||||
* | | | |
|
||||
* | | | |
|
||||
* 0 +-----+-------------------+-----+
|
||||
* | | | |
|
||||
* | | | |
|
||||
* | | | |
|
||||
* height +-----+-------------------+-----+
|
||||
* | | | |
|
||||
* height+ | | | |
|
||||
* | | | |
|
||||
* height+ | | | |
|
||||
* center +-----+-------------------+-----+
|
||||
*/
|
||||
|
||||
|
@ -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