diff options
Diffstat (limited to '')
-rw-r--r-- | src/menu/event_manager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/menu/event_manager.cpp b/src/menu/event_manager.cpp index ecb5668f..6d607e6d 100644 --- a/src/menu/event_manager.cpp +++ b/src/menu/event_manager.cpp @@ -39,6 +39,12 @@ namespace usdx EventManager::~EventManager(void) { + boost::mutex::scoped_lock lock(mutex); + + while (waiting > 0) { + --waiting; + delete buffer[waiting]; + } } bool EventManager::is_not_full() const |