diff options
author | Patrick Rudolph <[email protected]> | 2015-01-07 19:26:39 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2015-02-06 00:07:18 +0100 |
commit | dfeca90419ac50e0776a3fdb102a2975c8075391 (patch) | |
tree | 8b7852f27e0bfcc5381f92bea518734d2f0bced9 /src/gallium/state_trackers | |
parent | b3afcc09680cfcf3af3ee98b48c327a6c01143ca (diff) |
st/nine: Do not leak private data in volume9.
This->data was allocated by nine, but not freed.
Reviewed-by: Axel Davy <[email protected]>
Signed-off-by: Patrick Rudolph <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/nine/volume9.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/volume9.c b/src/gallium/state_trackers/nine/volume9.c index 3a2626fe7b6..9e83d6b5819 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); |