Skip to content

Commit

Permalink
Fix leak in QgsSymbolLegendNode
Browse files Browse the repository at this point in the history
(cherry-picked from f94512)
  • Loading branch information
nyalldawson committed Feb 12, 2017
1 parent a0ee107 commit 7ee5d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layertree/qgslayertreemodellegendnode.cpp
Expand Up @@ -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();

Expand Down

0 comments on commit 7ee5d8a

Please sign in to comment.