Conor McCarthy : vkd3d-shader: Free the capabilities array on spirv builder destruction.

Alexandre Julliard julliard at winehq.org
Wed Sep 8 15:11:20 CDT 2021


Module: vkd3d
Branch: master
Commit: eb3d8c911c676f3839d47eebc5ef8e8202783e90
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=eb3d8c911c676f3839d47eebc5ef8e8202783e90

Author: Conor McCarthy <cmccarthy at codeweavers.com>
Date:   Thu Sep  2 23:41:16 2021 +1000

vkd3d-shader: Free the capabilities array on spirv builder destruction.

Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 libs/vkd3d-shader/spirv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libs/vkd3d-shader/spirv.c b/libs/vkd3d-shader/spirv.c
index 695882c..6f948c3 100644
--- a/libs/vkd3d-shader/spirv.c
+++ b/libs/vkd3d-shader/spirv.c
@@ -1800,6 +1800,8 @@ static void vkd3d_spirv_builder_free(struct vkd3d_spirv_builder *builder)
 
     vkd3d_spirv_stream_free(&builder->insertion_stream);
 
+    vkd3d_free(builder->capabilities);
+
     rb_destroy(&builder->declarations, vkd3d_spirv_declaration_free, NULL);
 
     vkd3d_free(builder->iface);




More information about the wine-cvs mailing list