st/nine: Fix leak with volume dtor

The last level was not released.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
Axel Davy 2016-12-05 00:12:52 +01:00
parent 76e392d852
commit f042639231

View file

@ -139,7 +139,7 @@ NineVolumeTexture9_dtor( struct NineVolumeTexture9 *This )
DBG("This=%p\n", This);
if (This->volumes) {
for (l = 0; l < This->base.base.info.last_level; ++l)
for (l = 0; l <= This->base.base.info.last_level; ++l)
NineUnknown_Destroy(&This->volumes[l]->base);
FREE(This->volumes);
}