From: Axel Davy Date: Sun, 4 Dec 2016 23:12:52 +0000 (+0100) Subject: st/nine: Fix leak with volume dtor X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f04263923132bcf0425e1297da460543e93a95fe;p=mesa.git st/nine: Fix leak with volume dtor The last level was not released. Signed-off-by: Axel Davy --- 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); }