diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-26 11:13:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-26 11:13:42 +0300 |
commit | 02a7063a0922c6c59a9f71ea2627e4f211a79899 (patch) | |
tree | 230ed5a6652bbd3ac16d4bb060d451301395c7fd /intern/ghost/GHOST_ISystem.h | |
parent | d53a0cd48f5e9293a9e08252d261c830c34f532c (diff) |
fix for blenderplayer crashing on exit.
the event consumer was being freed twice, once when going out of C++ scope, another when freeing the system.
Diffstat (limited to 'intern/ghost/GHOST_ISystem.h')
-rw-r--r-- | intern/ghost/GHOST_ISystem.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/intern/ghost/GHOST_ISystem.h b/intern/ghost/GHOST_ISystem.h index 7e1300d780a..38c732153d7 100644 --- a/intern/ghost/GHOST_ISystem.h +++ b/intern/ghost/GHOST_ISystem.h @@ -290,7 +290,14 @@ public: * @return Indication of success. */ virtual GHOST_TSuccess addEventConsumer(GHOST_IEventConsumer* consumer) = 0; - + + /** + * Removes the given event consumer to our list. + * @param consumer The event consumer to remove. + * @return Indication of success. + */ + virtual GHOST_TSuccess removeEventConsumer(GHOST_IEventConsumer* consumer) = 0; + /*************************************************************************************** ** N-degree of freedom device management functionality ***************************************************************************************/ |