From 5f53ecb97f23503324d62abdd21bda8ee80b0ab9 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 28 Apr 2010 15:14:58 -0600 Subject: [PATCH] llvmpipe: fix surface memory leak during tear-down --- src/gallium/drivers/llvmpipe/lp_setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index 611ec8c0190..6f162482f46 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_setup.c @@ -762,6 +762,8 @@ lp_setup_destroy( struct lp_setup_context *setup ) reset_context( setup ); + util_unreference_framebuffer_state(&setup->fb); + for (i = 0; i < Elements(setup->fs.current_tex); i++) { pipe_resource_reference(&setup->fs.current_tex[i], NULL); } -- 2.30.2