vk/meta: Destroy shader modules
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 23 Jul 2015 00:51:26 +0000 (17:51 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 23 Jul 2015 00:51:26 +0000 (17:51 -0700)
src/vulkan/anv_meta.c

index f2629156f3c67a13bda896a17be111fd26ad91a2..8ee7eb012e63efbcec043b264a39cf3971b9c311 100644 (file)
@@ -141,6 +141,7 @@ anv_device_init_meta_clear_state(struct anv_device *device)
       },
       &device->meta_state.clear.pipeline);
 
+   anv_DestroyShaderModule(anv_device_to_handle(device), fsm);
    anv_DestroyShader(anv_device_to_handle(device), fs);
 }
 
@@ -476,7 +477,9 @@ anv_device_init_meta_blit_state(struct anv_device *device)
       },
       &device->meta_state.blit.pipeline);
 
+   anv_DestroyShaderModule(anv_device_to_handle(device), vsm);
    anv_DestroyShader(anv_device_to_handle(device), vs);
+   anv_DestroyShaderModule(anv_device_to_handle(device), fsm);
    anv_DestroyShader(anv_device_to_handle(device), fs);
 }