summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-04-28 15:21:56 -0600
committerBrian Paul <brianp@vmware.com>2010-04-28 15:25:50 -0600
commit7dd44ca5f692f10a367b3862084f8b76bf3ad73b (patch)
tree29d651d4e67cef5819e28c9d4eb6249dcfd913d6
parent5f53ecb97f23503324d62abdd21bda8ee80b0ab9 (diff)
llvmpipe: fix mem leak in llvmpipe_resource_destroy()
-rw-r--r--src/gallium/drivers/llvmpipe/lp_texture.c2
1 files changed, 2 insertions, 0 deletions
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 */