Skip to content

Commit a0ee107

Browse files
committed
Fix leak in expressions
(cherry-picked from 586631)
1 parent 6292c6a commit a0ee107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsexpression.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ class CORE_EXPORT QgsExpression
10521052
/** Adds a named node. Takes ownership of the provided node.
10531053
* @note added in QGIS 2.16
10541054
*/
1055-
void append( NamedNode* node ) { mList.append( node->node ); mNameList.append( node->name.toLower() ); mHasNamedNodes = true; }
1055+
void append( NamedNode* node ) { mList.append( node->node ); mNameList.append( node->name.toLower() ); mHasNamedNodes = true; delete node; }
10561056

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

0 commit comments

Comments
 (0)