InputCommon: Fix memory leak in ExpressionParser
We allocate in MakeSuppressor via `return unique_ptr(std::make_unique<...>(...).release(), InvokingDeleter{}`, so it wasn't properly getting freed.
This commit is contained in:
parent
b6d476241a
commit
f1f3fd5d9d
|
@ -37,6 +37,7 @@ public:
|
||||||
void operator()(T* func)
|
void operator()(T* func)
|
||||||
{
|
{
|
||||||
(*func)();
|
(*func)();
|
||||||
|
delete func;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue