projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76e392d
)
st/nine: Fix leak with volume dtor
author
Axel Davy
<axel.davy@ens.fr>
Sun, 4 Dec 2016 23:12:52 +0000
(
00:12
+0100)
committer
Axel 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
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/nine/volumetexture9.c
b/src/gallium/state_trackers/nine/volumetexture9.c
index 4908ed7b5ef505ddd5466886bf6159b54b9db96f..5c83fdb60ceeb462ebc765305cbcad6ed124b310 100644
(file)
--- 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);
}