Skip to content

Commit

Permalink
Fix leak in diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 31, 2015
1 parent 8f601be commit 075c50d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,7 @@ bool QgsVectorLayer::readSymbology( const QDomNode& node, QString& errorMessage
QDomElement diagramSettingsElem = node.firstChildElement( "DiagramLayerSettings" );
if ( !diagramSettingsElem.isNull() )
{
delete mDiagramLayerSettings;
mDiagramLayerSettings = new QgsDiagramLayerSettings();
mDiagramLayerSettings->readXML( diagramSettingsElem, this );
}
Expand Down

0 comments on commit 075c50d

Please sign in to comment.