Skip to content
Permalink
Browse files

Fix expressions leaking internal data

  • Loading branch information
nyalldawson committed Feb 7, 2017
1 parent aad7c5e commit 15dcb6fbc2892bb9cb520a0843e8c7b93c55c9b2
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/qgsexpression.cpp
@@ -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;

0 comments on commit 15dcb6f

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