Skip to content
Permalink
Browse files

Fix leak in expressions

(cherry-picked from 586631)
  • Loading branch information
nyalldawson committed Feb 12, 2017
1 parent 6292c6a commit a0ee107dfe2ee2ae1ea07c6a07f1123b70c932c4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsexpression.h
@@ -1052,7 +1052,7 @@ class CORE_EXPORT QgsExpression
/** Adds a named node. Takes ownership of the provided node.
* @note added in QGIS 2.16
*/
void append( NamedNode* node ) { mList.append( node->node ); mNameList.append( node->name.toLower() ); mHasNamedNodes = true; }
void append( NamedNode* node ) { mList.append( node->node ); mNameList.append( node->name.toLower() ); mHasNamedNodes = true; delete node; }

/** Returns the number of nodes in the list.
*/

0 comments on commit a0ee107

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