ci(amd64/clang/lsan): fix leak sanitizer errors #57
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -24,7 +24,6 @@ Swapchain::Swapchain(ISurface *surface, IGpu *gpu, IDevice *device)
 | 
			
		|||
	const auto queue_indices = m_device->get_family_indices();
 | 
			
		||||
	m_format = surface_format.format;
 | 
			
		||||
 | 
			
		||||
	std::cout << "CREATING SWAPCHAIN" << std::endl;
 | 
			
		||||
	m_swapchain = m_device->create_swapchain(
 | 
			
		||||
	    VkSwapchainCreateInfoKHR {
 | 
			
		||||
	        .sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR,
 | 
			
		||||
| 
						 | 
				
			
			@ -45,6 +44,7 @@ Swapchain::Swapchain(ISurface *surface, IGpu *gpu, IDevice *device)
 | 
			
		|||
	        .oldSwapchain = nullptr,
 | 
			
		||||
	    }
 | 
			
		||||
	);
 | 
			
		||||
	log_dbg("CREATED SWAPCHAIN @ {:x}", std::bit_cast<size_t>(m_swapchain));
 | 
			
		||||
	m_resolution = capabilities.currentExtent;
 | 
			
		||||
	m_device->name(m_swapchain, "swapchain {}", idx++);
 | 
			
		||||
	m_device->wait_idle();
 | 
			
		||||
| 
						 | 
				
			
			@ -89,8 +89,8 @@ Swapchain::~Swapchain()
 | 
			
		|||
	try
 | 
			
		||||
	{
 | 
			
		||||
		m_device->wait_idle();
 | 
			
		||||
		// m_device->destroy_image_views(m_image_views);
 | 
			
		||||
		std::cout << "DESTROYING SWAPCHAIN" << std::endl;
 | 
			
		||||
		log_dbg("DESTROY SWAPCHAIN @ {:x}", std::bit_cast<size_t>(m_swapchain));
 | 
			
		||||
		m_device->destroy_swapchain(m_swapchain);
 | 
			
		||||
		m_device->wait_idle();
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue