vk/pipeline: Actually free the program stream and dynamic pool
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 6 Jun 2015 00:14:57 +0000 (17:14 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 6 Jun 2015 00:26:26 +0000 (17:26 -0700)
src/vulkan/pipeline.c

index 6babd18..2e96524 100644 (file)
@@ -379,6 +379,8 @@ anv_pipeline_destroy(struct anv_device *device,
 
    anv_compiler_free(pipeline);
    anv_reloc_list_finish(&pipeline->batch.relocs, pipeline->device);
+   anv_state_stream_finish(&pipeline->program_stream);
+   anv_state_pool_free(&device->dynamic_state_pool, pipeline->blend_state);
    anv_device_free(pipeline->device, pipeline);
 }