Issue #20437: Fixed 21 potential bugs when deleting objects references.
16 files changed