mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
vbo: fix vbo/dlist memory leak
Based on a patch by kristof.ralovich@gmail.com
This commit is contained in:
parent
6ff1a5385e
commit
ca1b71b78d
1 changed files with 5 additions and 0 deletions
|
|
@ -1144,6 +1144,11 @@ static void vbo_destroy_vertex_list( GLcontext *ctx, void *data )
|
|||
|
||||
if ( --node->prim_store->refcount == 0 )
|
||||
FREE( node->prim_store );
|
||||
|
||||
if (node->current_data) {
|
||||
FREE(node->current_data);
|
||||
node->current_data = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue