Index: trunk/psLib/src/math/psPolynomial.c
===================================================================
--- trunk/psLib/src/math/psPolynomial.c	(revision 3709)
+++ trunk/psLib/src/math/psPolynomial.c	(revision 3714)
@@ -7,13 +7,15 @@
  *  polynomials.  It also contains a Gaussian functions.
  *
- *  @version $Revision: 1.97 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-04-19 00:34:04 $
+ *  @version $Revision: 1.98 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-04-19 04:16:02 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
  *
- *  XXX: What happens if the polyEVal functions are called with data of the wrong
+ *  XXX: What happens if the polyEval functions are called with data of the wrong
  *       type?
  *  XXX: Should the "coeffErr[]" be used as well?  Bug ???.  Ignore coeffErr
  *
+ *  XXX: In the various polyAlloc(n) functions, n is really the order of the
+ *  polynomial plus 1.  To create a 2nd-order polynomial, n == 3.
  */
 /*****************************************************************************/
@@ -175,7 +177,7 @@
 static void dPolynomial2DFree(psDPolynomial2D* myPoly)
 {
-    psS32 x = 0;
-
-    for (x = 0; x < myPoly->nX; x++) {
+    //printf("dPolynomial2DFree(): HMMM: myPoly->nX is %d\n", myPoly->nX);
+    //printf("dPolynomial2DFree(): HMMM: myPoly->nY is %d\n", myPoly->nY);
+    for (psS32 x = 0; x < myPoly->nX; x++) {
         psFree(myPoly->coeff[x]);
         psFree(myPoly->coeffErr[x]);
