Skip to content
Permalink
Browse files

Fix memory leak when cloning vector layers

  • Loading branch information
nyalldawson committed May 29, 2017
1 parent 48db8ec commit fb76383d293250ecdc1f9fb3110fd47209be9d94
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/qgsvectorlayer.cpp
@@ -247,8 +247,7 @@ QgsVectorLayer *QgsVectorLayer::clone() const

if ( diagramLayerSettings() )
{
QgsDiagramLayerSettings *dls = new QgsDiagramLayerSettings( *diagramLayerSettings() );
layer->setDiagramLayerSettings( *dls );
layer->setDiagramLayerSettings( *diagramLayerSettings() );
}

for ( int i = 0; i < fields().count(); i++ )

0 comments on commit fb76383

Please sign in to comment.
You can’t perform that action at this time.