Mesa (master): vc4: Fix a leak of the last color read/ write surface on context destroy.
Eric Anholt
anholt at kemper.freedesktop.org
Wed Oct 7 00:47:54 UTC 2015
Module: Mesa
Branch: master
Commit: b6cd39fc4761a3a6276a373e68510fb7fb735a77
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b6cd39fc4761a3a6276a373e68510fb7fb735a77
Author: Eric Anholt <eric at anholt.net>
Date: Tue Oct 6 16:32:03 2015 -0700
vc4: Fix a leak of the last color read/write surface on context destroy.
---
src/gallium/drivers/vc4/vc4_context.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c
index 87d781d..d490fad 100644
--- a/src/gallium/drivers/vc4/vc4_context.c
+++ b/src/gallium/drivers/vc4/vc4_context.c
@@ -188,6 +188,9 @@ vc4_context_destroy(struct pipe_context *pctx)
pipe_surface_reference(&vc4->framebuffer.cbufs[0], NULL);
pipe_surface_reference(&vc4->framebuffer.zsbuf, NULL);
+ pipe_surface_reference(&vc4->color_write, NULL);
+ pipe_surface_reference(&vc4->color_read, NULL);
+
vc4_program_fini(pctx);
ralloc_free(vc4);
More information about the mesa-commit
mailing list