mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
Empty kill and init callback before calling them
This commit is contained in:
parent
554b27a82a
commit
a03dd44924
5 changed files with 37 additions and 25 deletions
|
@ -2893,8 +2893,9 @@ void Emulator::Kill(bool allow_autoexit, bool savestate)
|
|||
|
||||
if (after_kill_callback)
|
||||
{
|
||||
after_kill_callback();
|
||||
after_kill_callback = nullptr;
|
||||
// Make after_kill_callback empty before call
|
||||
const auto callback = std::move(after_kill_callback);
|
||||
callback();
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue