summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-12-05 00:12:52 +0100
committerAxel Davy <[email protected]>2016-12-20 23:47:08 +0100
commitf04263923132bcf0425e1297da460543e93a95fe (patch)
tree8ca3b86b9bbe3836e1cc8dba389ff0b194b57e6a /src/gallium
parent76e392d85239718e6a7b20c914b4827db2828b40 (diff)
st/nine: Fix leak with volume dtor
The last level was not released. Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/nine/volumetexture9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/volumetexture9.c b/src/gallium/state_trackers/nine/volumetexture9.c
index 4908ed7b5ef..5c83fdb60ce 100644
--- a/src/gallium/state_trackers/nine/volumetexture9.c
+++ b/src/gallium/state_trackers/nine/volumetexture9.c
@@ -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);
}