]> granicus.if.org Git - postgis/commitdiff
additional bug fix for #844
authorChris Hodgson <chodgson@refractions.net>
Fri, 13 May 2011 01:04:34 +0000 (01:04 +0000)
committerChris Hodgson <chodgson@refractions.net>
Fri, 13 May 2011 01:04:34 +0000 (01:04 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7141 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_rtree.c

index 63fc3443fc7a503f18e030bb46c9bdc02f56f5b7..f2cb3a2432dc747c012d0b165fc80fae367fc130 100644 (file)
@@ -217,7 +217,7 @@ void clearCache(RTREE_POLY_CACHE *cache)
         i = 0;
         for (g = 0; g < cache->polyCount; g++)
         {
-               for (r = 0; r < cache->ringCounts; r++)
+               for (r = 0; r < cache->ringCounts[g]; r++)
                {
                        freeTree(cache->ringIndices[i]);
                         i++;