mirror of
https://github.com/scummvm/scummvm.git
synced 2024-05-29 01:07:44 -04:00
ENGINES: Purge any remaining events when quitting an engine
This commit is contained in:
parent
895c665654
commit
27ee3640af
|
@ -198,6 +198,10 @@ Engine::Engine(OSystem *syst)
|
|||
Engine::~Engine() {
|
||||
_mixer->stopAll();
|
||||
|
||||
// Flush any pending remaining events
|
||||
Common::Event evt;
|
||||
while (g_system->getEventManager()->pollEvent(evt)) {}
|
||||
|
||||
delete _debugger;
|
||||
delete _mainMenuDialog;
|
||||
g_engine = NULL;
|
||||
|
|
Loading…
Reference in a new issue