mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
vbo/dlist: free prim_store->prims when vbo_save is destroyed
Fixes: 83149e1c2d ("vbo/dlist: refactor prim_store/vertex_store allocations")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4067
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/8410>
This commit is contained in:
parent
f7527f7f65
commit
06ea5f49fa
1 changed files with 1 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ void vbo_save_destroy( struct gl_context *ctx )
|
|||
|
||||
if (save->prim_store) {
|
||||
if ( --save->prim_store->refcount == 0 ) {
|
||||
free(save->prim_store->prims);
|
||||
free(save->prim_store);
|
||||
save->prim_store = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue