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 d4c71376a5567afb6ae3ce5ef4365192cb97e3d6..3bf6672a88a716ac8190f4af3ed7c1e03494bc32 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