projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.jwz.org/xscreensaver/xscreensaver-5.11.tar.gz
[xscreensaver]
/
hacks
/
analogtv.c
diff --git
a/hacks/analogtv.c
b/hacks/analogtv.c
index f271d26b0682b7b8c4e635ccb118b42fcb553bb8..bb334650f9675b3bca2bec6da2a7b6f86c96e0e2 100644
(file)
--- a/
hacks/analogtv.c
+++ b/
hacks/analogtv.c
@@
-494,6
+494,7
@@
analogtv_release(analogtv *it)
it->gc=NULL;
if (it->n_colors) XFreeColors(it->dpy, it->colormap, it->colors, it->n_colors, 0L);
it->n_colors=0;
it->gc=NULL;
if (it->n_colors) XFreeColors(it->dpy, it->colormap, it->colors, it->n_colors, 0L);
it->n_colors=0;
+ free(it);
}
}
@@
-1030,11
+1031,11
@@
analogtv_setup_levels(analogtv *it, double avgheight)
it->leveltable[height][0].index=0;
}
if (avgheight>=5) {
it->leveltable[height][0].index=0;
}
if (avgheight>=5) {
- it->leveltable[height][height-1].index=0;
+ i
f (height >= 1) i
t->leveltable[height][height-1].index=0;
}
if (avgheight>=7) {
it->leveltable[height][1].index=1;
}
if (avgheight>=7) {
it->leveltable[height][1].index=1;
- it->leveltable[height][height-2].index=1;
+ i
f (height >= 2) i
t->leveltable[height][height-2].index=1;
}
for (i=0; i<height; i++) {
}
for (i=0; i<height; i++) {