mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
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 <awatry@gmail.com> Reviewed-by: Bruno Jiménez <brunojimen@gmail.com>
This commit is contained in:
parent
6cd0dbc415
commit
7c73ee677f
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue