Skip to content

Commit 6d82cd6

Browse files
committedAug 14, 2016
Fix leak caused by missing virtual destructor
1 parent 2ca6992 commit 6d82cd6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎python/core/qgsexpressioncontextgenerator.sip

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@ class QgsExpressionContextGenerator
3838
* and return an expression context.
3939
*/
4040
virtual QgsExpressionContext createExpressionContext() const = 0;
41+
42+
virtual ~QgsExpressionContextGenerator();
4143
};

‎src/core/qgsexpressioncontextgenerator.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ class QgsExpressionContextGenerator
4343
* @note Added in QGIS 3.0
4444
*/
4545
virtual QgsExpressionContext createExpressionContext() const = 0;
46+
47+
virtual ~QgsExpressionContextGenerator() {}
4648
};
4749

4850
#endif // QGSEXPRESSIONCONTEXTGENERATOR_H

0 commit comments

Comments
 (0)
Please sign in to comment.