From c93eeeb08afd570d9f354897381c84c7980bb09a Mon Sep 17 00:00:00 2001 From: Gabríel Arthúr Pétursson Date: Sat, 3 Jun 2017 23:39:00 +0000 Subject: layers: Free pipeline state memory in vkDestroyPipeline Pipeline states are allocated in vkCreateGraphicsPipelines and vkCreateComputePipelines. --- 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 008b49e3..aec8d92a 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -5300,6 +5300,7 @@ static void PostCallRecordDestroyPipeline(layer_data *dev_data, VkPipeline pipel VK_OBJECT obj_struct) { // Any bound cmd buffers are now invalid invalidateCommandBuffers(dev_data, pipeline_state->cb_bindings, obj_struct); + delete getPipelineState(dev_data, pipeline); dev_data->pipelineMap.erase(pipeline); } -- cgit v1.2.3