summaryrefslogtreecommitdiffstats
path: root/hacks/petri.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-18 11:55:58 +0100
committerSimon Rettberg2019-02-18 11:55:58 +0100
commitaa7530630e595b80d5db54655fd827b61edc0fd7 (patch)
tree048cb74072450c7592f254c3537ac8f252d09d73 /hacks/petri.c
parentForgot one DPMS killing instance (diff)
parentUpdate to 5.42 (diff)
downloadxscreensaver-23.tar.gz
xscreensaver-23.tar.xz
xscreensaver-23.zip
Merge branch 'master' into openslxv23
Diffstat (limited to 'hacks/petri.c')
-rw-r--r--hacks/petri.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/hacks/petri.c b/hacks/petri.c
index 97299d6..e97c582 100644
--- a/hacks/petri.c
+++ b/hacks/petri.c
@@ -419,7 +419,7 @@ setup_display (struct state *st)
if (osize != cell_size)
{
- if (!st->warned)
+ if (0 && !st->warned)
{
fprintf (stderr,
"%s: throttling cell size from %d to %d because of %dM limit.\n",
@@ -707,11 +707,19 @@ static void
petri_free (Display *dpy, Window window, void *closure)
{
struct state *st = (struct state *) closure;
+ if (st->arr) free (st->arr);
+ if (st->head) free (st->head);
+ if (st->tail) free (st->tail);
+ if (st->coloredGCs) {
+ int i;
+ for (i = 0; i < st->count*2; i++)
+ XFreeGC (st->dpy, st->coloredGCs[i]);
+ free (st->coloredGCs);
+ }
free (st);
}
-
static const char *petri_defaults [] = {
".background: black",
".foreground: white",