I am writing a custom modifier that allocates and uses some runtime data, so I provided a function pointer in the
freeRuntimeData field of the
ModifierTypeInfo struct (defined in my
MOD_foo.c file) to free it eventually.
The callback is indeed called when the Modifier is removed from an object, but when the object is deleted without removing the modifier first, it never gets called.
Is this a bug, or does this means that I did not correctly get the way modifier data is managed? I based my work on the current release of Blender 2.80.