diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/pegasus/pegasus.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/pegasus/pegasus.cpp b/engines/pegasus/pegasus.cpp index 423d321fe0..b307a19ec8 100644 --- a/engines/pegasus/pegasus.cpp +++ b/engines/pegasus/pegasus.cpp @@ -104,7 +104,12 @@ PegasusEngine::~PegasusEngine() { delete _rnd; delete _introTimer; delete _aiSaveStream; + + for (ItemIterator it = _allItems.begin(); it != _allItems.end(); it++) + delete *it; + InputDeviceManager::destroy(); + GameStateManager::destroy(); // NOTE: This must be deleted last! delete _gfx; |