diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2008-04-21 21:01:38 +0100 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2008-04-21 21:01:38 +0100 |
commit | e406ad5912985920a0d796f1ada58b40316590ed (patch) | |
tree | 5985d820977a158ef63b70ce00b6a4b88b1cb639 /src/gallium/auxiliary/draw/draw_pt_fetch.c | |
parent | 01dfa6cde157321f565bab949f23f367ed20fa0e (diff) | |
download | external_mesa3d-e406ad5912985920a0d796f1ada58b40316590ed.zip external_mesa3d-e406ad5912985920a0d796f1ada58b40316590ed.tar.gz external_mesa3d-e406ad5912985920a0d796f1ada58b40316590ed.tar.bz2 |
draw: squash a couple of memory leaks
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch.c b/src/gallium/auxiliary/draw/draw_pt_fetch.c index c588710..f98bce6 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch.c @@ -166,6 +166,9 @@ struct pt_fetch *draw_pt_fetch_create( struct draw_context *draw ) void draw_pt_fetch_destroy( struct pt_fetch *fetch ) { + if (fetch->translate) + fetch->translate->release( fetch->translate ); + FREE(fetch); } |