mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Fix leak in QgsMultiSurface::asJSON
This commit is contained in:
parent
6fe89fd3c4
commit
0d6df12835
@ -101,7 +101,7 @@ QString QgsMultiSurface::asJSON( int precision ) const
|
||||
{
|
||||
json += '[';
|
||||
|
||||
QgsPolygonV2 *polygon = static_cast<const QgsSurface *>( geom )->surfaceToPolygon();
|
||||
std::unique_ptr< QgsPolygonV2 >polygon( static_cast<const QgsSurface *>( geom )->surfaceToPolygon() );
|
||||
|
||||
std::unique_ptr< QgsLineString > exteriorLineString( polygon->exteriorRing()->curveToLine() );
|
||||
QgsPointSequence exteriorPts;
|
||||
|
Loading…
x
Reference in New Issue
Block a user