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_emit.c | |
parent | 01dfa6cde157321f565bab949f23f367ed20fa0e (diff) |
draw: squash a couple of memory leaks
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch_emit.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch_emit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c b/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c index 7735173042..68b2c5b1e3 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c @@ -264,6 +264,11 @@ static void fetch_emit_finish( struct draw_pt_middle_end *middle ) static void fetch_emit_destroy( struct draw_pt_middle_end *middle ) { + struct fetch_emit_middle_end *feme = (struct fetch_emit_middle_end *)middle; + + if (feme->translate) + feme->translate->release( feme->translate ); + FREE(middle); } |