*/
+/* Changelog ******************************************************************
+
+ 1.0.1 19990716 Assume that XGetImage()/XDestroyImage() don't leak,
+ which they apparently don't. I have no idea how I
+ convinced myself that they did. Huh. (greg@eod.com)
+ 1.0.0 19990716 Initial release
+*/
+
+
/* Arguments ******************************************************************
-font font Font to use
signal(sig_Number,xsublim_Sig_Catch);
}
- /* Randomize */
- srandom((int)time((time_t*)0));
+ /* Randomize -- only need to do this here because this program
+ doesn't use the `screenhack.h' or `lockmore.h' APIs. */
+# undef ya_rand_init
+ ya_rand_init ((int) time ((time_t *) 0));
/* Handle all the X nonsense */
#if defined(__sgi)
image_Y,image_Width,image_Height);
}
- /* Free the image (and it's goddamned structure
- -- the man page for XCreateImage() lies,
- lies, lies!) */
+ /* Free the image */
XDestroyImage(image_Image);
- XFree(image_Image);
}
/* Restore the error handler, ungrab the server */