Skip to content
Permalink
Browse files

Fix leak in QgsSymbolLegendNode

(cherry-picked from f94512)
  • Loading branch information
nyalldawson committed Feb 12, 2017
1 parent a0ee107 commit 7ee5d8a5bc350024f8195ecab72b0daf9685c8b4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/layertree/qgslayertreemodellegendnode.cpp
@@ -200,7 +200,7 @@ void QgsSymbolV2LegendNode::setSymbol( QgsSymbolV2* symbol )
return;

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

mPixmap = QPixmap();

0 comments on commit 7ee5d8a

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