OSDN Git Service

vc4: Avoid leaking indirect array access UBOs.
authorEric Anholt <eric@anholt.net>
Wed, 29 Jul 2015 21:41:22 +0000 (14:41 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 30 Jul 2015 22:46:28 +0000 (15:46 -0700)
src/gallium/drivers/vc4/vc4_uniforms.c

index d4c7137..3bf6672 100644 (file)
@@ -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