From 071d290969f0544120f079f2ad057e2b9580c3b1 Mon Sep 17 00:00:00 2001 From: Józef Kucia Date: Sun, 10 Sep 2017 11:02:31 +0200 Subject: layers: Fix memory leak in PreCallRecordCmdPushDescriptorSetKHR() --- layers/core_validation.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 78e72aaf..051717f8 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -5659,6 +5659,7 @@ static void PreCallRecordCmdPushDescriptorSetKHR(layer_data *device_data, VkComm new_desc->SetPushDescriptor(); cb_state->lastBound[pipelineBindPoint].boundDescriptorSets[set] = new_desc.get(); cb_state->lastBound[pipelineBindPoint].push_descriptors[set] = std::move(new_desc); + delete [] bindings; } VKAPI_ATTR void VKAPI_CALL CmdPushDescriptorSetKHR(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, -- cgit v1.2.3