From 76f3ef1d7c2b4393a8e8b402deb924e606448d27 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Wed, 11 Feb 2026 23:19:15 +1100 Subject: More cleanup, fix lifetime and mutex issues --- src/queue_context.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/queue_context.cc') diff --git a/src/queue_context.cc b/src/queue_context.cc index 8f7d571..930b0c5 100644 --- a/src/queue_context.cc +++ b/src/queue_context.cc @@ -51,12 +51,15 @@ QueueContext::QueueContext(DeviceContext& device_context, const VkQueue& queue, timestamp_pool(std::make_unique(*this)) {} QueueContext::~QueueContext() { + + // nuke our handles, so we avoid segfaults for now + this->handle_hack.clear(); + // Ugly - destructors of timestamp_pool should be called before we destroy // our vulkan objects. this->timestamp_pool.reset(); const auto& vtable = this->device_context.vtable; - vtable.DestroySemaphore(this->device_context.device, this->semaphore, nullptr); vtable.DestroyCommandPool(this->device_context.device, this->command_pool, -- cgit v1.2.3