anv/pipeline: Don't leak the binding map

This commit is contained in:
Jason Ekstrand
2016-02-18 11:04:53 -08:00
parent 8c23392c26
commit e881c73975
3 changed files with 8 additions and 0 deletions

View File

@@ -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)