Fixes leaking DebugUtilsMessenger in Instance.

Bug: chromium:1372772
Change-Id: Ida3907241a4b77555c6ec1e534f10e73043bde1d
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/69988
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Commit-Queue: Alexis Hétu <sugoi@google.com>
Kokoro-Result: kokoro <noreply+kokoro@google.com>
diff --git a/src/Vulkan/VkInstance.cpp b/src/Vulkan/VkInstance.cpp
index 3d78b8c..5cbbe11 100644
--- a/src/Vulkan/VkInstance.cpp
+++ b/src/Vulkan/VkInstance.cpp
@@ -26,6 +26,10 @@
 
 void Instance::destroy(const VkAllocationCallbacks *pAllocator)
 {
+	if(messenger)
+	{
+		vk::destroy(static_cast<VkDebugUtilsMessengerEXT>(*messenger), pAllocator);
+	}
 	vk::destroy(physicalDevice, pAllocator);
 }