projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f53ecb
)
llvmpipe: fix mem leak in llvmpipe_resource_destroy()
author
Brian Paul
<brianp@vmware.com>
Wed, 28 Apr 2010 21:21:56 +0000
(15:21 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 28 Apr 2010 21:25:50 +0000
(15:25 -0600)
src/gallium/drivers/llvmpipe/lp_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_texture.c
b/src/gallium/drivers/llvmpipe/lp_texture.c
index
9d10a9f
..
3468fbf
100644
(file)
--- 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 */