Skip to content

Commit 15dcb6f

Browse files
committedFeb 7, 2017
Fix expressions leaking internal data
1 parent aad7c5e commit 15dcb6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/core/qgsexpression.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4238,6 +4238,11 @@ QgsExpression::QgsExpression( const QgsExpression& other )
42384238

42394239
QgsExpression& QgsExpression::operator=( const QgsExpression & other )
42404240
{
4241+
if ( !d->ref.deref() )
4242+
{
4243+
delete d;
4244+
}
4245+
42414246
d = other.d;
42424247
d->ref.ref();
42434248
return *this;

0 commit comments

Comments
 (0)