aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorJózef Kucia <joseph.kucia@gmail.com>2017-09-10 11:02:31 +0200
committerTobin Ehlis <tobine@google.com>2017-09-13 12:27:13 -0600
commit071d290969f0544120f079f2ad057e2b9580c3b1 (patch)
treee9ac0c8be87a550685611ab4878bacce4a99bc48 /layers/core_validation.cpp
parent48128c402b023e66e0946dfe7efbf7e12ebffd5f (diff)
downloadusermoji-071d290969f0544120f079f2ad057e2b9580c3b1.tar.xz
layers: Fix memory leak in PreCallRecordCmdPushDescriptorSetKHR()
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp1
1 files changed, 1 insertions, 0 deletions
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,