Index: trunk/psLib/src/math/psSpline.c
===================================================================
--- trunk/psLib/src/math/psSpline.c	(revision 7766)
+++ trunk/psLib/src/math/psSpline.c	(revision 7914)
@@ -6,6 +6,6 @@
 *  This file contains the routines that allocate, free, and evaluate splines.
 *
-*  @version $Revision: 1.149 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-06-30 02:20:06 $
+*  @version $Revision: 1.150 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-07-15 02:57:12 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -168,4 +168,7 @@
 bool psMemCheckSpline1D(psPtr ptr)
 {
+    if (!is_psType(ptr)) {
+        return false;
+    }
     return ( psMemGetDeallocator(ptr) == (psFreeFunc)spline1DFree );
 }
