diff options
Diffstat (limited to 'src/event.cpp')
-rw-r--r-- | src/event.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/event.cpp b/src/event.cpp index 55782300..11d46a2f 100644 --- a/src/event.cpp +++ b/src/event.cpp @@ -27,12 +27,8 @@ Event::ListenMap Event::mBindings; Event::~Event() { - auto it = mData.begin(); - while (it != mData.end()) - { + for (auto it = mData.begin(); it != mData.end(); ++it) delete it->second; - it++; - } } // Integers |