Skip to content

Commit 298c1f4

Browse files
committed
Fix small memory leak in template engine
1 parent a4e72b6 commit 298c1f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/template.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4214,7 +4214,7 @@ class TemplateNodeSet : public TemplateNodeCreator<TemplateNodeSet>
42144214
struct Mapping
42154215
{
42164216
Mapping(const QCString &n,ExprAst *e) : name(n), value(e) {}
4217-
~Mapping() { }
4217+
~Mapping() { delete value; }
42184218
QCString name;
42194219
ExprAst *value = 0;
42204220
};

0 commit comments

Comments
 (0)