Skip to content

Commit

Permalink
Fix leak in expressions
Browse files Browse the repository at this point in the history
(cherry-picked from 586631)
  • Loading branch information
nyalldawson committed Feb 12, 2017
1 parent 6292c6a commit a0ee107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsexpression.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit a0ee107

Please sign in to comment.