When modifying the topology in dyntopo, the persistent base created for
the previous mesh state will become invalid, so it needs to be freed.
In some situations this could crash.
This can be considered again after merging the dyntopo updates. The
persistent base in dyntopo could become a datalayer and preserved during
the topology modifications, like vertex colors and face sets.