Index: trunk/psLib/src/math/psRegion.c
===================================================================
--- trunk/psLib/src/math/psRegion.c	(revision 7563)
+++ trunk/psLib/src/math/psRegion.c	(revision 7901)
@@ -6,4 +6,9 @@
 #include "psRegion.h"
 
+static void regionFree(psRegion *region)
+{
+    // There are non dynamic allocated items
+}
+
 psRegion *psRegionAlloc(float x0,
                         float x1,
@@ -12,4 +17,5 @@
 {
     psRegion *region = psAlloc(sizeof(psRegion)); // New region, to be returned
+    psMemSetDeallocator(region, (psFreeFunc)regionFree);
     // No complex structures, so no special deallocator
     *region = psRegionSet(x0, x1, y0, y1);
@@ -101,2 +107,11 @@
 }
 
+bool psMemCheckRegion(psPtr ptr)
+{
+    if (!is_psType(ptr)) {
+        return false;
+    }
+    return ( psMemGetDeallocator(ptr) == (psFreeFunc)regionFree );
+}
+
+
