From: Brian Paul Date: Wed, 28 Apr 2010 21:14:58 +0000 (-0600) Subject: llvmpipe: fix surface memory leak during tear-down X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f53ecb97f23503324d62abdd21bda8ee80b0ab9;p=mesa.git llvmpipe: fix surface memory leak during tear-down --- 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); }