mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
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:
@ -37,6 +37,7 @@ public:
|
||||
void operator()(T* func)
|
||||
{
|
||||
(*func)();
|
||||
delete func;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user