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
|
@ -173,7 +173,7 @@ NineCubeTexture9_dtor( struct NineCubeTexture9 *This )
|
||||||
DBG("This=%p\n", This);
|
DBG("This=%p\n", This);
|
||||||
|
|
||||||
if (This->surfaces) {
|
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);
|
NineUnknown_Destroy(&This->surfaces[i]->base.base);
|
||||||
FREE(This->surfaces);
|
FREE(This->surfaces);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue