Skip to content

Commit 7901ce2

Browse files
committed
Fix leak in QgsLegendSymbolItemV2
1 parent 3621bee commit 7901ce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/symbology-ng/qgslegendsymbolitemv2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ QgsLegendSymbolItemV2& QgsLegendSymbolItemV2::operator=( const QgsLegendSymbolIt
5757
if ( this == &other )
5858
return *this;
5959

60-
setSymbol( other.mSymbol ? other.mSymbol->clone() : 0 );
60+
setSymbol( other.mSymbol );
6161
mLabel = other.mLabel;
6262
mKey = other.mKey;
6363
mCheckable = other.mCheckable;

0 commit comments

Comments
 (0)