diff options
author | Aaron Watry <[email protected]> | 2014-08-20 18:24:00 -0500 |
---|---|---|
committer | Aaron Watry <[email protected]> | 2014-08-29 17:38:24 -0500 |
commit | 7c73ee677f162f5308020f0a25ba39d1682927fd (patch) | |
tree | 427fa195a3f52de84ab1f567e40fe5075c0229f5 /src/gallium/drivers/r600 | |
parent | 6cd0dbc415dd092a72a8941c45ba812b9fe74b24 (diff) |
r600/compute: Don't leak compute pool item_list/unallocated_list
v3: Fix multi-line comment format
v2: Change to C-style comments and fix indentation
Signed-off-by: Aaron Watry <[email protected]>
Reviewed-by: Bruno Jiménez <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r-- | src/gallium/drivers/r600/compute_memory_pool.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600/compute_memory_pool.c index 9324b84bd61..30b77a4ae89 100644 --- a/src/gallium/drivers/r600/compute_memory_pool.c +++ b/src/gallium/drivers/r600/compute_memory_pool.c @@ -95,6 +95,12 @@ void compute_memory_pool_delete(struct compute_memory_pool* pool) pool->screen->b.b.resource_destroy((struct pipe_screen *) pool->screen, (struct pipe_resource *)pool->bo); } + /* In theory, all of the items were freed in compute_memory_free. + * Just delete the list heads + */ + free(pool->item_list); + free(pool->unallocated_list); + /* And then the pool itself */ free(pool); } |