vc4: Avoid leaking indirect array access UBOs.
[mesa.git] / 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