X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fmenger.c;h=c5108a28d93c4725dc618e9127f0875d52a042fc;hp=e26e2d31de4afe182d9ac34861c034a7c802f0c0;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/glx/menger.c b/hacks/glx/menger.c index e26e2d31..c5108a28 100644 --- a/hacks/glx/menger.c +++ b/hacks/glx/menger.c @@ -401,14 +401,7 @@ init_sponge (ModeInfo *mi) sponge_configuration *sp; int wire = MI_IS_WIREFRAME(mi); - if (!sps) { - sps = (sponge_configuration *) - calloc (MI_NUM_SCREENS(mi), sizeof (sponge_configuration)); - if (!sps) { - fprintf(stderr, "%s: out of memory\n", progname); - exit(1); - } - } + MI_INIT (mi, sps, NULL); sp = &sps[MI_SCREEN(mi)];