diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-05-08 15:21:02 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-05-08 15:22:14 +0300 |
commit | 49fe27ee46b4d9272957c21c13365db322ca8396 (patch) | |
tree | 235ed597431d68a62b3d7ac4f77c6599ccd09ba7 /source/blender/modifiers/intern/MOD_fluidsim_util.c | |
parent | 53580265118236a096257b50f29d354243bdefe3 (diff) |
Modifiers: sanitize/cleanup modifiers' copying & freeing code.
Should also fix T55000: Crash with hooks and curves in Cycles render.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_fluidsim_util.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_fluidsim_util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_fluidsim_util.c b/source/blender/modifiers/intern/MOD_fluidsim_util.c index 72c44121e0b..07d0b48fdb4 100644 --- a/source/blender/modifiers/intern/MOD_fluidsim_util.c +++ b/source/blender/modifiers/intern/MOD_fluidsim_util.c @@ -155,6 +155,10 @@ void fluidsim_free(FluidsimModifierData *fluidmd) } MEM_SAFE_FREE(fluidmd->fss); } + + /* Seems to never be used, but for sqke of consistency... */ + BLI_assert(fluidmd->point_cache == NULL); + fluidmd->point_cache = NULL; return; } |