Skip to content

Commit

Permalink
Fix expressions leaking internal data
Browse files Browse the repository at this point in the history
(cherry-picked from 15dcb6)
  • Loading branch information
nyalldawson committed Feb 12, 2017
1 parent 7ee5d8a commit 343bc8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/qgsexpression.cpp
Expand Up @@ -3697,6 +3697,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 343bc8a

Please sign in to comment.