From 65f8c774a86b664e15f026b09a2695fa1bf50ce2 Mon Sep 17 00:00:00 2001 From: AWoloszyn Date: Wed, 19 Dec 2018 11:11:40 -0500 Subject: [PATCH] Make sure that the image/view exist before deleting them. --- gapis/api/vulkan/api/image.api | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gapis/api/vulkan/api/image.api b/gapis/api/vulkan/api/image.api index 3e9917d1e8..c909f00fe2 100644 --- a/gapis/api/vulkan/api/image.api +++ b/gapis/api/vulkan/api/image.api @@ -522,7 +522,9 @@ cmd void vkDestroyImageView( } delete(ImageViews, imageView) - delete(viewObj.Image.Views, imageView) + if (viewObj.Image && imageView in viewObj.Image.Views) { + delete(viewObj.Image.Views, imageView) + } } }