Blender Git Loki
Git Commits -> Revision 193dd13
Revision 193dd13 by Lukas Toenne (master) December 5, 2013, 14:09 (GMT) |
Fix T37698: Crash from invalid context access when freeing custom python nodes on Blender exit. The nodeFreeNode function is calling a customizable freefunc callback, which can be implemented by python. However, the context is invalid when using this callback while the node tree data block is freed on exit. Luckily it is also not necessary: When freeing the bNodeTree data blocks all that is needed is freeing of the DNA data, no other side effects should happen. So now disable the api callbacks when freeing nodes in the ntreeFreeTree function. Also some minor cleanup: checking node->typeinfo is not necessary, all nodes will always have a valid typeinfo pointer - if a node type is unknown this will be a stub bNodeType to avoid the need for such checks. |
Commit Details:
Full Hash: 193dd134da443245920a8d4cff4e46a97a04a761
Parent Commit: 68d39a2
Lines Changed: +11, -6
1 Modified Path:
/source/blender/blenkernel/intern/node.c (+11, -6) (Diff)