Mesa (master): vc4: Avoid leaking indirect array access UBOs.

Eric Anholt anholt at kemper.freedesktop.org
Thu Jul 30 22:52:08 UTC 2015


Module: Mesa
Branch: master
Commit: df3005de189f5120bc06f6cba35ecaf5c4503229
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=df3005de189f5120bc06f6cba35ecaf5c4503229

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Jul 29 14:41:22 2015 -0700

vc4: Avoid leaking indirect array access UBOs.

---

 src/gallium/drivers/vc4/vc4_uniforms.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/vc4/vc4_uniforms.c b/src/gallium/drivers/vc4/vc4_uniforms.c
index d4c7137..3bf6672 100644
--- a/src/gallium/drivers/vc4/vc4_uniforms.c
+++ b/src/gallium/drivers/vc4/vc4_uniforms.c
@@ -283,6 +283,8 @@ vc4_write_uniforms(struct vc4_context *vc4, struct vc4_compiled_shader *shader,
         }
 
         cl_end(&vc4->uniforms, uniforms);
+
+        vc4_bo_unreference(&ubo);
 }
 
 void




More information about the mesa-commit mailing list