From 7dd44ca5f692f10a367b3862084f8b76bf3ad73b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 28 Apr 2010 15:21:56 -0600 Subject: [PATCH] llvmpipe: fix mem leak in llvmpipe_resource_destroy() --- src/gallium/drivers/llvmpipe/lp_texture.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c index 9d10a9f..3468fbf 100644 --- a/src/gallium/drivers/llvmpipe/lp_texture.c +++ b/src/gallium/drivers/llvmpipe/lp_texture.c @@ -241,6 +241,8 @@ llvmpipe_resource_destroy(struct pipe_screen *pscreen, /* display target */ struct sw_winsys *winsys = screen->winsys; winsys->displaytarget_destroy(winsys, lpr->dt); + + FREE(lpr->layout[0]); } else if (resource_is_texture(pt)) { /* regular texture */ -- 2.7.4