Skip to content
Permalink
Browse files

Fix leak in expressions

  • Loading branch information
nyalldawson committed Feb 8, 2017
1 parent a80258f commit 586631b7b516cb2096c574fd339170adedb9d435
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/qgsexpression.cpp
@@ -4537,6 +4537,7 @@ void QgsExpression::NodeList::append( QgsExpression::NamedNode* node )
mList.append( node->node );
mNameList.append( node->name.toLower() );
mHasNamedNodes = true;
delete node;
}

QgsExpression::NodeList* QgsExpression::NodeList::clone() const
@@ -5362,7 +5363,7 @@ bool QgsExpression::NodeFunction::validateParams( int fnIndex, QgsExpression::No
const ParameterList& functionParams = Functions()[fnIndex]->parameters();
if ( functionParams.isEmpty() )
{
error = QStringLiteral( "%1 does not supported named parameters" ).arg( Functions()[fnIndex]->name() );
error = QStringLiteral( "%1 does not support named parameters" ).arg( Functions()[fnIndex]->name() );
return false;
}
else

0 comments on commit 586631b

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