Skip to content
Permalink
Browse files
Fix leak in QgsSymbolLegendNode
  • Loading branch information
nyalldawson committed Feb 7, 2017
1 parent 39fa842 commit f945123b561a3bc80ad987b4a27a6d5b7019a96f
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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.