From: Sandro Santilli Date: Wed, 6 Jul 2011 15:02:46 +0000 (+0000) Subject: Properly destroy lwgeom in lwgeom_to_x3d3 now that it's safe (see #1102) X-Git-Tag: 2.0.0alpha1~1230 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed3f886e2f6cb7fc7977713e081c1a051958fd7a;p=postgis Properly destroy lwgeom in lwgeom_to_x3d3 now that it's safe (see #1102) git-svn-id: http://svn.osgeo.org/postgis/trunk@7612 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwout_x3d.c b/liblwgeom/lwout_x3d.c index 5c764deef..acdeabee4 100644 --- a/liblwgeom/lwout_x3d.c +++ b/liblwgeom/lwout_x3d.c @@ -65,8 +65,7 @@ lwgeom_to_x3d3(const LWGEOM *geom, char *srs, int precision, int opts, const cha */ LWCOLLECTION *tmp = (LWCOLLECTION*)lwgeom_as_multi(geom); char *ret = asx3d3_multi(tmp, srs, precision, opts, defid); - /* See http://trac.osgeo.org/postgis/ticket/1104 about problems with lwgeom_clone */ - lwcollection_release(tmp); + lwcollection_free(tmp); return ret; }