diff --git a/.pick_status.json b/.pick_status.json index e2b5d88c836..8359c2189d7 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -139,7 +139,7 @@ "description": "anv/image: Fix cleanup of failed image creation", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": null }, diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 21c5d5c3eef..659a8401f77 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -853,9 +853,8 @@ anv_image_create(VkDevice _device, return VK_SUCCESS; fail: - if (image) - vk_free2(&device->vk.alloc, alloc, image); - + vk_object_base_finish(&image->base); + vk_free2(&device->vk.alloc, alloc, image); return r; }