diff options
author | Jason Ekstrand <[email protected]> | 2016-02-18 11:04:53 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-02-18 11:09:30 -0800 |
commit | e881c73975cb12ce58d4ebc362c6ad18a8e4b3ca (patch) | |
tree | bf306d84784cca520f392096df2a29d7966c02da /src/intel/vulkan/anv_pipeline.c | |
parent | 8c23392c26916711b7b02337fd342ee9765b6fd4 (diff) |
anv/pipeline: Don't leak the binding map
Diffstat (limited to 'src/intel/vulkan/anv_pipeline.c')
-rw-r--r-- | src/intel/vulkan/anv_pipeline.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index a7feefb540e..2f1ce3956a9 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -193,6 +193,11 @@ void anv_DestroyPipeline( ANV_FROM_HANDLE(anv_device, device, _device); ANV_FROM_HANDLE(anv_pipeline, pipeline, _pipeline); + for (unsigned s = 0; s < MESA_SHADER_STAGES; s++) { + free(pipeline->bindings[s].surface_to_descriptor); + free(pipeline->bindings[s].sampler_to_descriptor); + } + anv_reloc_list_finish(&pipeline->batch_relocs, pAllocator ? pAllocator : &device->alloc); if (pipeline->blend_state.map) |