mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
st/nine: Use align_free when needed
Use align_free to free memory allocated with align_malloc. Signed-off-by: Axel Davy <axel.davy@ens.fr> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
parent
6b12fe77ea
commit
94d91c6707
4 changed files with 4 additions and 4 deletions
|
|
@ -181,7 +181,7 @@ NineCubeTexture9_dtor( struct NineCubeTexture9 *This )
|
|||
}
|
||||
|
||||
if (This->managed_buffer)
|
||||
FREE(This->managed_buffer);
|
||||
align_free(This->managed_buffer);
|
||||
|
||||
NineBaseTexture9_dtor(&This->base);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ NineSurface9_dtor( struct NineSurface9 *This )
|
|||
|
||||
/* Release system memory when we have to manage it (no parent) */
|
||||
if (!This->base.base.container && This->data)
|
||||
FREE(This->data);
|
||||
align_free(This->data);
|
||||
NineResource9_dtor(&This->base);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ NineTexture9_dtor( struct NineTexture9 *This )
|
|||
}
|
||||
|
||||
if (This->managed_buffer)
|
||||
FREE(This->managed_buffer);
|
||||
align_free(This->managed_buffer);
|
||||
|
||||
NineBaseTexture9_dtor(&This->base);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ NineVolume9_dtor( struct NineVolume9 *This )
|
|||
NineVolume9_UnlockBox(This);
|
||||
|
||||
if (This->data)
|
||||
FREE(This->data);
|
||||
align_free(This->data);
|
||||
|
||||
pipe_resource_reference(&This->resource, NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue