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:
Pokechu22 2023-02-17 18:26:23 -08:00
parent b6d476241a
commit f1f3fd5d9d
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ public:
void operator()(T* func) void operator()(T* func)
{ {
(*func)(); (*func)();
delete func;
} }
}; };