We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 802f7f5 commit e84f37bCopy full SHA for e84f37b
src/core/geometry/qgsmultipoint.cpp
@@ -189,10 +189,21 @@ void QgsMultiPoint::filterVertices( const std::function<bool ( const QgsPoint &
189
{
190
if ( const QgsPoint *point = qgsgeometry_cast< const QgsPoint * >( part ) )
191
192
- return !filter( *point );
+ if ( !filter( *point ) )
193
+ {
194
+ delete point;
195
+ return true;
196
+ }
197
+ else
198
199
+ return false;
200
201
}
202
else
203
204
+ delete part;
205
return true;
206
207
} ), mGeometries.end() ); // clazy:exclude=detaching-member
208
209
0 commit comments