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_C-api.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_C-api.h')
-rw-r--r-- | intern/ghost/GHOST_C-api.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/intern/ghost/GHOST_C-api.h b/intern/ghost/GHOST_C-api.h index e1464542ed3..be8dc138797 100644 --- a/intern/ghost/GHOST_C-api.h +++ b/intern/ghost/GHOST_C-api.h @@ -262,7 +262,16 @@ extern int GHOST_DispatchEvents(GHOST_SystemHandle systemhandle); */ extern GHOST_TSuccess GHOST_AddEventConsumer(GHOST_SystemHandle systemhandle, GHOST_EventConsumerHandle consumerhandle); - + +/** + * Remove the given event consumer to our list. + * @param systemhandle The handle to the system + * @param consumerhandle The event consumer to remove. + * @return Indication of success. + */ +extern GHOST_TSuccess GHOST_RemoveEventConsumer(GHOST_SystemHandle systemhandle, + GHOST_EventConsumerHandle consumerhandle); + /*************************************************************************************** ** Progress bar functionality ***************************************************************************************/ |