From http://www.jwz.org/xscreensaver/xscreensaver-5.37.tar.gz
[xscreensaver] / hacks / glx / hypnowheel.c
index d92e147b0baf539c09a5b6d5b6ee9345e7ccc2c9..4a8fe5e2a0c93183c923918aced8296f3569c1b5 100644 (file)
@@ -169,14 +169,7 @@ init_hypnowheel (ModeInfo *mi)
   int wire = MI_IS_WIREFRAME(mi);
   int i;
 
-  if (!bps) {
-    bps = (hypnowheel_configuration *)
-      calloc (MI_NUM_SCREENS(mi), sizeof (hypnowheel_configuration));
-    if (!bps) {
-      fprintf(stderr, "%s: out of memory\n", progname);
-      exit(1);
-    }
-  }
+  MI_INIT (mi, bps, NULL);
 
   bp = &bps[MI_SCREEN(mi)];