Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6ca5cd2
)
Fix segfault on linux; from nicm
author
Marco Peereboom
<marco@conformal.com>
Thu, 22 Jan 2009 23:06:45 +0000
(23:06 +0000)
committer
Marco Peereboom
<marco@conformal.com>
Thu, 22 Jan 2009 23:06:45 +0000
(23:06 +0000)
scrotwm.c
patch
|
blob
|
history
diff --git
a/scrotwm.c
b/scrotwm.c
index
6f26b63
..
ca2a281
100644
(file)
--- a/
scrotwm.c
+++ b/
scrotwm.c
@@
-2024,7
+2024,7
@@
setup_screens(void)
else
ncrtc = sr->ncrtc;
- for (c = 0; c < ncrtc; c++) {
+ for (c = 0, ci = NULL; c < ncrtc; c++) {
ci = XRRGetCrtcInfo(display, sr, sr->crtcs[c]);
if (ci->noutput == 0)
continue;
@@
-2038,7
+2038,8
@@
setup_screens(void)
ci->x, ci->y, ci->width, ci->height);
w++;
}
- XRRFreeCrtcInfo(ci);
+ if (ci)
+ XRRFreeCrtcInfo(ci);
XRRFreeScreenResources(sr);
#else
new_region(&screens[i], &screens[i].ws[w], 0, 0,