projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3afcc0
)
st/nine: Do not leak private data in volume9.
author
Patrick Rudolph
<siro@das-labor.org>
Wed, 7 Jan 2015 18:26:39 +0000
(19:26 +0100)
committer
Axel Davy
<axel.davy@ens.fr>
Thu, 5 Feb 2015 23:07:18 +0000
(
00:07
+0100)
This->data was allocated by nine, but not freed.
Reviewed-by: Axel Davy <axel.davy@ens.fr>
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
src/gallium/state_trackers/nine/volume9.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/nine/volume9.c
b/src/gallium/state_trackers/nine/volume9.c
index 3a2626fe7b68b61a9a3cb5768437be8ee19239b2..9e83d6b58195d57e94bced7e7b2323239c3b0b3a 100644
(file)
--- a/
src/gallium/state_trackers/nine/volume9.c
+++ b/
src/gallium/state_trackers/nine/volume9.c
@@
-127,6
+127,9
@@
NineVolume9_dtor( struct NineVolume9 *This )
if (This->transfer)
NineVolume9_UnlockBox(This);
+ if (This->data)
+ FREE(This->data);
+
pipe_resource_reference(&This->resource, NULL);
NineUnknown_dtor(&This->base);