diff options
author | Axel Davy <[email protected]> | 2016-12-05 00:12:07 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:47:08 +0100 |
commit | 76e392d85239718e6a7b20c914b4827db2828b40 (patch) | |
tree | e05956a0d5b2a3ad1e553fe18f6e37135cfaab09 /src/gallium/state_trackers/nine | |
parent | fec0b7f0672b3d4d6507dd705abb9e2a74943401 (diff) |
st/nine: Fix leak with cubetexture dtor
The last level was not released.
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine')
-rw-r--r-- | src/gallium/state_trackers/nine/cubetexture9.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/cubetexture9.c b/src/gallium/state_trackers/nine/cubetexture9.c index 0a834eba4bd..977a345552b 100644 --- a/src/gallium/state_trackers/nine/cubetexture9.c +++ b/src/gallium/state_trackers/nine/cubetexture9.c @@ -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); } |