draw: squash a couple of memory leaks

This commit is contained in:
Keith Whitwell 2008-04-21 21:01:38 +01:00
parent 01dfa6cde1
commit e406ad5912
2 changed files with 8 additions and 0 deletions

View File

@ -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);
}

View File

@ -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);
}