[PATCH 2/5] d3dcompiler: Free the relative addressing data of destination registers (Valgrind).

Matteo Bruni mbruni at codeweavers.com
Tue Aug 26 09:13:06 CDT 2014


---
 dlls/d3dcompiler_43/bytecodewriter.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/d3dcompiler_43/bytecodewriter.c b/dlls/d3dcompiler_43/bytecodewriter.c
index 17289d2..46187f9 100644
--- a/dlls/d3dcompiler_43/bytecodewriter.c
+++ b/dlls/d3dcompiler_43/bytecodewriter.c
@@ -2622,6 +2622,7 @@ void SlDeleteShader(struct bwriter_shader *shader) {
             d3dcompiler_free(shader->instr[i]->src[j].rel_reg);
         }
         d3dcompiler_free(shader->instr[i]->src);
+        d3dcompiler_free(shader->instr[i]->dst.rel_reg);
         d3dcompiler_free(shader->instr[i]);
     }
     d3dcompiler_free(shader->instr);
-- 
1.8.5.5




More information about the wine-patches mailing list