draw: squash a couple of memory leaks
This commit is contained in:
parent
01dfa6cde1
commit
e406ad5912
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue