X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fceltic.c;h=6ce4e7074dadb899a8a2e9e749d11c1c33d1bd72;hp=103b64718b03814e698f2b0fb0cf1c35e476e707;hb=d1ae2829ff0fd2a96c16a0c8c5420efaa47d7b30;hpb=7edd66e6bd3209013ee059819747b10b5835635b diff --git a/hacks/celtic.c b/hacks/celtic.c index 103b6471..6ce4e707 100644 --- a/hacks/celtic.c +++ b/hacks/celtic.c @@ -978,7 +978,9 @@ celtic_draw (Display *dpy, Window window, void *closure) st->force_reset = 0; st->t = 1; - pattern_del(st->pattern); + if (st->pattern != NULL) { + pattern_del(st->pattern); + } st->pattern = NULL; graph_del(st->graph);