Index: trunk/psLib/src/math/psMinimize.c
===================================================================
--- trunk/psLib/src/math/psMinimize.c	(revision 4858)
+++ trunk/psLib/src/math/psMinimize.c	(revision 4898)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.131 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-08-24 01:04:37 $
+ *  @version $Revision: 1.132 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-08-30 01:14:13 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -1372,5 +1372,8 @@
 }
 
-
+static void minimizationFree(psMinimization *min)
+{
+    // There are non dynamic allocated items
+}
 
 /******************************************************************************
@@ -1382,4 +1385,5 @@
 
     psMinimization *min = psAlloc(sizeof(psMinimization));
+    psMemSetDeallocator(min, (psFreeFunc)minimizationFree);
     *(int*)&min->maxIter = maxIter;
     *(float*)&min->tol = tol;
@@ -1390,4 +1394,10 @@
     return(min);
 }
+
+bool psMemCheckMinimization(psPtr ptr)
+{
+    return ( psMemGetDeallocator(ptr) == (psFreeFunc)minimizationFree );
+}
+
 
 // This macro takes as input the vector BASE and adds a multiple of the vector
