Skip to content

Commit 6d82cd6

Browse files
committed
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

+2
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

+2
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)