From: Brian Paul Date: Wed, 28 Apr 2010 21:21:56 +0000 (-0600) Subject: llvmpipe: fix mem leak in llvmpipe_resource_destroy() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7dd44ca5f692f10a367b3862084f8b76bf3ad73b;p=mesa.git llvmpipe: fix mem leak in llvmpipe_resource_destroy() --- diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c index 9d10a9f2d38..3468fbfb1f3 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 */