Skip to content
Permalink
Browse files

Fix leak caused by missing virtual destructor

  • Loading branch information
nyalldawson committed Aug 14, 2016
1 parent 2ca6992 commit 6d82cd63b69b0ee92caecaf88c6532ca43677784
Showing with 4 additions and 0 deletions.
  1. +2 −0 python/core/qgsexpressioncontextgenerator.sip
  2. +2 −0 src/core/qgsexpressioncontextgenerator.h
@@ -38,4 +38,6 @@ class QgsExpressionContextGenerator
* and return an expression context.
*/
virtual QgsExpressionContext createExpressionContext() const = 0;

virtual ~QgsExpressionContextGenerator();
};
@@ -43,6 +43,8 @@ class QgsExpressionContextGenerator
* @note Added in QGIS 3.0
*/
virtual QgsExpressionContext createExpressionContext() const = 0;

virtual ~QgsExpressionContextGenerator() {}
};

#endif // QGSEXPRESSIONCONTEXTGENERATOR_H

0 comments on commit 6d82cd6

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