diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-10-19 16:48:12 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-10-19 16:53:11 +0300 |
commit | a7075a30e2611b41af672d5987af662ce5934492 (patch) | |
tree | 0b65e09649b5cdb6e75f32a66617ee409279c5eb /source/blender/nodes/NOD_static_types.h | |
parent | 219058c213d5c9efce3f44216f6513edc93b5536 (diff) |
BKE_callback_remove: prevent crash on Blender exit
`BKE_callback_remove` now checks whether the callback actually is known,
before trying to remove it.
`BKE_blender_atexit()` runs after `BKE_callback_global_finalize()`. When
an at-exit callback tried to unregister its BKE callbacks, these would
already be unregistered, causing a crash of Blender when exiting,
Diffstat (limited to 'source/blender/nodes/NOD_static_types.h')
0 files changed, 0 insertions, 0 deletions