projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c62f02
)
XDestroyRegion(3) only for non-NULL regions
author
Nikos Ntarmos
<ntarmos@cs.uoi.gr>
Thu, 28 May 2009 13:46:23 +0000
(16:46 +0300)
committer
Brenden Matthews
<brenden@rty.ca>
Fri, 29 May 2009 03:27:55 +0000
(21:27 -0600)
Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
Signed-off-by: Brenden Matthews <brenden@rty.ca>
src/conky.c
patch
|
blob
|
history
diff --git
a/src/conky.c
b/src/conky.c
index
e670cf4
..
a40e462
100644
(file)
--- a/
src/conky.c
+++ b/
src/conky.c
@@
-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();