Index: /tags/ipp-20140114/psphot/src/psphotCleanup.c
===================================================================
--- /tags/ipp-20140114/psphot/src/psphotCleanup.c	(revision 36546)
+++ /tags/ipp-20140114/psphot/src/psphotCleanup.c	(revision 36547)
@@ -22,6 +22,9 @@
     pmVisualCleanup ();
     psLibFinalize();
+#if (PS_TRACE_ON)
+    // don't display memory leaks unless trace is on. 
     // fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, NULL, false), "psphot");
     fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, stdout, false), "psphot");
+#endif
     return;
 }
