Skip to content

Commit

Permalink
Fix leak in QgsSymbolLegendNode
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 7, 2017
1 parent 39fa842 commit f945123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layertree/qgslayertreemodellegendnode.cpp
Expand Up @@ -196,7 +196,7 @@ void QgsSymbolLegendNode::setSymbol( QgsSymbol* symbol )
return;

mItem.setSymbol( symbol );
vlayer->renderer()->setLegendSymbolItem( mItem.ruleKey(), symbol->clone() );
vlayer->renderer()->setLegendSymbolItem( mItem.ruleKey(), symbol );

mPixmap = QPixmap();

Expand Down

0 comments on commit f945123

Please sign in to comment.