st/nine: Fix leak with volume dtor
authorAxel Davy <axel.davy@ens.fr>
Sun, 4 Dec 2016 23:12:52 +0000 (00:12 +0100)
committerAxel Davy <axel.davy@ens.fr>
Tue, 20 Dec 2016 22:47:08 +0000 (23:47 +0100)
The last level was not released.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/volumetexture9.c

index 4908ed7..5c83fdb 100644 (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);
     }