Index: trunk/psLib/src/astro/psSphereOps.c
===================================================================
--- trunk/psLib/src/astro/psSphereOps.c	(revision 7766)
+++ trunk/psLib/src/astro/psSphereOps.c	(revision 7914)
@@ -8,6 +8,6 @@
  *  @author Dave Robbins, MHPCC
  *
- *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-06-30 02:20:06 $
+ *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-07-15 02:57:12 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -83,4 +83,7 @@
 bool psMemCheckSphereRot(psPtr ptr)
 {
+    if (!is_psType(ptr)) {
+        return false;
+    }
     //See if the ptr corresponds to a psSphereRot*
     return ( psMemGetDeallocator(ptr) == (psFreeFunc)sphereRotFree );
