Conor McCarthy : vkd3d: Do not destroy a heap until its resource count is zero.