When we are in an indirect buffer, killing the indirect buffer causes the base buffer to also undergo a teardown. This commit makes sure to check whether we are actually in the right buffer, before initiating a teardown, thereby preventing spurious teardowns. Only killing the base buffer performs a teardown now with this PR.
When we are in an indirect buffer, killing the indirect buffer causes the base buffer to also undergo a teardown. This commit makes sure to check whether we are actually in the right buffer, before initiating a teardown, thereby preventing spurious teardowns. Only killing the base buffer performs a teardown now with this PR.