From http://www.jwz.org/xscreensaver/xscreensaver-5.38.tar.gz
[xscreensaver] / hacks / glx / voronoi.c
index ea700c303a176a97f31fb4ae474bf8aa3dd08262..957dc3cd6fd1ec135e4cf5655ce90004a2bf24ed 100644 (file)
@@ -13,7 +13,7 @@
                         "*showFPS:      False              \n" \
                        "*suppressRotationAnimation: True\n" \
 
-# define refresh_voronoi 0
+# define free_voronoi 0
 # define release_voronoi 0
 #undef countof
 #define countof(x) (sizeof((x))/sizeof((*x)))
@@ -478,14 +478,7 @@ init_voronoi (ModeInfo *mi)
 {
   voronoi_configuration *vp;
 
-  if (!vps) {
-    vps = (voronoi_configuration *)
-      calloc (MI_NUM_SCREENS(mi), sizeof (voronoi_configuration));
-    if (!vps) {
-      fprintf(stderr, "%s: out of memory\n", progname);
-      exit(1);
-    }
-  }
+  MI_INIT (mi, vps);
 
   vp = &vps[MI_SCREEN(mi)];