mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-16 18:15:17 +00:00
XDestroyRegion(3) only for non-NULL regions
Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr> Signed-off-by: Brenden Matthews <brenden@rty.ca>
This commit is contained in:
parent
0c62f02553
commit
613a440fdc
@ -7239,7 +7239,8 @@ static void X11_destroy_window(void)
|
||||
XDamageDestroy(display, x11_stuff.damage);
|
||||
XFixesDestroyRegion(display, x11_stuff.region2);
|
||||
XFixesDestroyRegion(display, x11_stuff.part);
|
||||
XDestroyRegion(x11_stuff.region);
|
||||
if (x11_stuff.region)
|
||||
XDestroyRegion(x11_stuff.region);
|
||||
x11_stuff.region = NULL;
|
||||
#endif /* HAVE_XDAMAGE */
|
||||
destroy_window();
|
||||
|
Loading…
Reference in New Issue
Block a user