mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
st/nine: Fix leak with cubetexture dtor
The last level was not released. Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
fec0b7f067
commit
76e392d852
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ NineCubeTexture9_dtor( struct NineCubeTexture9 *This )
|
|||
DBG("This=%p\n", This);
|
||||
|
||||
if (This->surfaces) {
|
||||
for (i = 0; i < This->base.base.info.last_level * 6; ++i)
|
||||
for (i = 0; i < (This->base.base.info.last_level + 1) * 6; ++i)
|
||||
NineUnknown_Destroy(&This->surfaces[i]->base.base);
|
||||
FREE(This->surfaces);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue