Index: /trunk/psLib/src/types/psArray.c
===================================================================
--- /trunk/psLib/src/types/psArray.c	(revision 8797)
+++ /trunk/psLib/src/types/psArray.c	(revision 8798)
@@ -9,6 +9,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-26 04:34:28 $
+ *  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-09-12 21:04:11 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -165,8 +165,10 @@
     }
 
-    for (psS32 i = 0; i < psArr->n; i++) {
+    for (long i = 0; i < psArr->n; i++) {
         psFree(psArr->data[i]);
         psArr->data[i] = NULL;
     }
+
+    psArray->n = 0;
 }
 
Index: /trunk/psLib/src/types/psArray.h
===================================================================
--- /trunk/psLib/src/types/psArray.h	(revision 8797)
+++ /trunk/psLib/src/types/psArray.h	(revision 8798)
@@ -11,6 +11,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-07-05 22:34:38 $
+ *  @version $Revision: 1.38 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-09-12 21:04:11 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -114,5 +114,5 @@
  * Uses psLib memory allocation functions to deallocate/dereference elements
  * of a array of void pointers.  The array psArr is not freed, and its elements
- * will all be set to NULL.
+ * will all be set to NULL.  Additionaly, the array size (n) is set to zero.
  *
  */
