Mesa (master): zink: dot leak dummy_buffer

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 5 15:41:15 UTC 2021


Module: Mesa
Branch: master
Commit: 07d5d911dd6c7d36fdd678f289d3babdde634406
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=07d5d911dd6c7d36fdd678f289d3babdde634406

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Tue Dec 15 10:39:46 2020 +0100

zink: dot leak dummy_buffer

Fixes: 8736ffae2ed ("zink: replace unset buffer with a dummy-buffer")

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8099>

---

 src/gallium/drivers/zink/zink_context.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index c5786ee31cf..a4c38d04e1e 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -61,6 +61,7 @@ zink_context_destroy(struct pipe_context *pctx)
 
    util_blitter_destroy(ctx->blitter);
 
+   pipe_resource_reference(&ctx->dummy_buffer, NULL);
    for (unsigned i = 0; i < ARRAY_SIZE(ctx->null_buffers); i++)
       pipe_resource_reference(&ctx->null_buffers[i], NULL);
 



More information about the mesa-commit mailing list