[Mesa-dev] [PATCH 10/43] st/nine: Do not leak private data in volume9.
Axel Davy
axel.davy at ens.fr
Fri Jan 30 12:34:09 PST 2015
From: Patrick Rudolph <siro at das-labor.org>
This->data was allocated by nine, but not freed.
Reviewed-by: Axel Davy <axel.davy at ens.fr>
Signed-off-by: Patrick Rudolph <siro at das-labor.org>
---
src/gallium/state_trackers/nine/volume9.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/state_trackers/nine/volume9.c b/src/gallium/state_trackers/nine/volume9.c
index 3a2626f..9e83d6b 100644
--- 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);
--
2.1.0
More information about the mesa-dev
mailing list