git-svn-id: http://svn.osgeo.org/postgis/branches/pgis_1_0@2086
b70326c6-7e19-0410-871a-
916f4a2858ee
else
{
SRID = lwgeom->SRID;
+ /* We transfer bbox ownership from input to output */
bbox = lwgeom->bbox;
lwgeom->SRID = -1;
lwgeom->bbox = NULL;
{
type += 3;
SRID = lwgeom->SRID;
+ /* We transfer bbox ownership from input to output */
box = lwgeom->bbox;
lwgeom->SRID=-1;
lwgeom->bbox=NULL;
/* COMPUTE_BBOX WHEN_SIMPLE */
if ( lwgeoms[i]->bbox ) {
- box = palloc(sizeof(BOX2DFLOAT4));
- memcpy(box, lwgeoms[i]->bbox, sizeof(BOX2DFLOAT4));
+ box = box2d_clone(lwgeoms[i]->bbox);
}
}
else