Skip to content

Commit

Permalink
Fix leak caused by missing virtual destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 14, 2016
1 parent 2ca6992 commit 6d82cd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/core/qgsexpressioncontextgenerator.sip
Expand Up @@ -38,4 +38,6 @@ class QgsExpressionContextGenerator
* and return an expression context.
*/
virtual QgsExpressionContext createExpressionContext() const = 0;

virtual ~QgsExpressionContextGenerator();
};
2 changes: 2 additions & 0 deletions src/core/qgsexpressioncontextgenerator.h
Expand Up @@ -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.