From: Eric Anholt Date: Thu, 5 Jul 2018 20:30:03 +0000 (-0700) Subject: v3d: Fix leak of the spill BO on context destruction. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b111313738bb6ec82e7fac9d0be844e62c6e622;p=mesa.git v3d: Fix leak of the spill BO on context destruction. --- diff --git a/src/gallium/drivers/v3d/v3d_program.c b/src/gallium/drivers/v3d/v3d_program.c index b5742b3bb1e..93228b53c5c 100644 --- a/src/gallium/drivers/v3d/v3d_program.c +++ b/src/gallium/drivers/v3d/v3d_program.c @@ -681,4 +681,6 @@ v3d_program_fini(struct pipe_context *pctx) ralloc_free(shader); _mesa_hash_table_remove(v3d->vs_cache, entry); } + + v3d_bo_unreference(&v3d->prog.spill_bo); }