Skip to content
Permalink
Browse files

Fix expressions leaking internal data

(cherry-picked from 15dcb6)
  • Loading branch information
nyalldawson committed Feb 12, 2017
1 parent 7ee5d8a commit 343bc8a5a30a40e65c7bc743083f339f7103fa8a
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/qgsexpression.cpp
@@ -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;

0 comments on commit 343bc8a

Please sign in to comment.
You can’t perform that action at this time.