Skip to content
Permalink
Browse files

Fix leak in QgsSymbolLegendNode

  • Loading branch information
nyalldawson committed Feb 7, 2017
1 parent 39fa842 commit f945123b561a3bc80ad987b4a27a6d5b7019a96f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/layertree/qgslayertreemodellegendnode.cpp
@@ -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();

0 comments on commit f945123

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