Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/intern/BLI_kdopbvh.c
| Context not available. | |||||
| fail: | fail: | ||||
| MEM_SAFE_FREE(tree->nodes); | BLI_bvhtree_free(tree); | ||||
brecht: This is not equivalent, it does not use `MEM_SAFE_FREE` in case memory allocation failed. | |||||
sobakasuAuthorUnsubmitted Done Inline Actionsthis part got committed to master, not sure if that was a mistake or not. thanks for fixing this by the way, now i can use surface force fields again :) sobakasu: this part got committed to master, not sure if that was a mistake or not. thanks for fixing… | |||||
brechtUnsubmitted Not Done Inline ActionsI changed BLI_bvhtree_free to use MEM_SAFE_FREE. brecht: I changed `BLI_bvhtree_free` to use `MEM_SAFE_FREE`. | |||||
| MEM_SAFE_FREE(tree->nodebv); | |||||
| MEM_SAFE_FREE(tree->nodechild); | |||||
| MEM_SAFE_FREE(tree->nodearray); | |||||
| MEM_freeN(tree); | |||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| Context not available. | |||||
This is not equivalent, it does not use MEM_SAFE_FREE in case memory allocation failed.