xrepaint.c: Close the display explicitly at the end.
[xtoys] / xrepaint.c
index 166e238..5a454a8 100644 (file)
@@ -152,6 +152,7 @@ int main(int argc, char *argv[])
   select(0, 0, 0, 0, &tv);
 
   /* All done. */
+  XCloseDisplay(dpy);
   return (0);
 }