Plug minor memory leak in cogl_vertex_buffer_submit_real
Free a temporary list.
This commit is contained in:
parent
f8e9565482
commit
63c84c46f8
@ -1438,6 +1438,7 @@ cogl_vertex_buffer_submit_real (CoglVertexBuffer *buffer)
|
|||||||
for (tmp = buffer->submitted_vbos; tmp != NULL; tmp = tmp->next)
|
for (tmp = buffer->submitted_vbos; tmp != NULL; tmp = tmp->next)
|
||||||
cogl_vertex_buffer_vbo_free (tmp->data, TRUE);
|
cogl_vertex_buffer_vbo_free (tmp->data, TRUE);
|
||||||
g_list_free (buffer->submitted_vbos);
|
g_list_free (buffer->submitted_vbos);
|
||||||
|
g_list_free (new_vbos);
|
||||||
|
|
||||||
buffer->submitted_vbos = final_vbos;
|
buffer->submitted_vbos = final_vbos;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user