Index: trunk/psastro/src/psastroCleanup.c
===================================================================
--- trunk/psastro/src/psastroCleanup.c	(revision 21409)
+++ trunk/psastro/src/psastroCleanup.c	(revision 21422)
@@ -6,6 +6,6 @@
  *
  *  @author IfA
- *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2009-02-07 02:03:34 $
+ *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2009-02-09 21:25:34 $
  *  Copyright 2009 Institute for Astronomy, University of Hawaii
  */
@@ -16,4 +16,5 @@
 
     psFree (config);
+    pmAstromVisualClose ();
 
     psTimerStop ();
@@ -23,6 +24,4 @@
     pmConceptsDone ();
     pmConfigDone ();
-    psastroVisualClose ();
-    pmAstromVisualClose ();
     fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, stdout, false), "psastro");
     // fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, NULL, false), "psastro");
