mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 18:20:10 +01:00
vc4: Fix leak of vc4_bos stashed in the context.
This commit is contained in:
parent
80ed075e60
commit
1f1ca8b2ea
1 changed files with 5 additions and 0 deletions
|
|
@ -431,6 +431,11 @@ vc4_context_destroy(struct pipe_context *pctx)
|
|||
|
||||
util_slab_destroy(&vc4->transfer_pool);
|
||||
|
||||
pipe_surface_reference(&vc4->framebuffer.cbufs[0], NULL);
|
||||
pipe_surface_reference(&vc4->framebuffer.zsbuf, NULL);
|
||||
vc4_bo_unreference(&vc4->tile_alloc);
|
||||
vc4_bo_unreference(&vc4->tile_state);
|
||||
|
||||
vc4_program_fini(pctx);
|
||||
|
||||
ralloc_free(vc4);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue