summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-12-14 20:39:49 -0800
committerEric Anholt <[email protected]>2014-12-14 23:12:11 -0800
commit1f1ca8b2ea80f6b538b7f7c0de2ebe8eba862edc (patch)
tree6e41f61568eb78ab79c450e3f859b741522a1392 /src
parent80ed075e6033eba68b034fbd748da4e0b82a27f4 (diff)
vc4: Fix leak of vc4_bos stashed in the context.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/vc4/vc4_context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c
index 3535ebbb3ed..fd65f432bac 100644
--- a/src/gallium/drivers/vc4/vc4_context.c
+++ b/src/gallium/drivers/vc4/vc4_context.c
@@ -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);