mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 09:50:08 +01:00
mesa: free idalloc storage for display lists
Fixes a leak: ==46154== 48 bytes in 1 blocks are definitely lost in loss record 1,571 of 1,905 ==46154== at 0x48466AF: realloc (vg_replace_malloc.c:1437) ==46154== by 0x5FC98EC: util_idalloc_resize (u_idalloc.c:43) ==46154== by 0x5FC9C16: util_idalloc_alloc_range (u_idalloc.c:125) ==46154== by 0x56FDB9F: _mesa_EndList (dlist.c:13681) Fixes:b703d7c15f("dlist: store all dlist in a continuous memory block") Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14474> (cherry picked from commit6e9cd801a6)
This commit is contained in:
parent
c3a733dded
commit
50c247dfdc
2 changed files with 2 additions and 1 deletions
|
|
@ -499,7 +499,7 @@
|
|||
"description": "mesa: free idalloc storage for display lists",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "b703d7c15f47fed9f22de55f21cfd8d9d5ff241e"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -357,6 +357,7 @@ free_shared_state(struct gl_context *ctx, struct gl_shared_state *shared)
|
|||
_mesa_HashDeleteAll(shared->DisplayList, delete_displaylist_cb, ctx);
|
||||
_mesa_DeleteHashTable(shared->DisplayList);
|
||||
free(shared->small_dlist_store.ptr);
|
||||
util_idalloc_fini(&shared->small_dlist_store.free_idx);
|
||||
}
|
||||
|
||||
if (shared->BitmapAtlas) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue