Matteo Bruni : d3dcompiler: Free the relative addressing data of destination registers (Valgrind).

Alexandre Julliard julliard at wine.codeweavers.com
Tue Aug 26 15:20:29 CDT 2014


Module: wine
Branch: master
Commit: aa167f92d7b1204e8ffda07b21cddc59ddb2e095
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=aa167f92d7b1204e8ffda07b21cddc59ddb2e095

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Tue Aug 26 16:13:06 2014 +0200

d3dcompiler: Free the relative addressing data of destination registers (Valgrind).

---

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




More information about the wine-cvs mailing list