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:
1 parent
b6d476241a
commit
f1f3fd5d9d
1 file changed
+1
@@ -37,6 +37,7 @@ public:
|
||||
void operator()(T* func)
|
||||
{
|
||||
(*func)();
|
||||
delete func;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user