Skip to content

Commit

Permalink
Fix expressions leaking internal data
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 7, 2017
1 parent aad7c5e commit 15dcb6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/qgsexpression.cpp
Expand Up @@ -4238,6 +4238,11 @@ QgsExpression::QgsExpression( const QgsExpression& other )

QgsExpression& QgsExpression::operator=( const QgsExpression & other )
{
if ( !d->ref.deref() )
{
delete d;
}

d = other.d;
d->ref.ref();
return *this;
Expand Down

0 comments on commit 15dcb6f

Please sign in to comment.