Plug minor memory leak in cogl_vertex_buffer_submit_real

Free a temporary list.
This commit is contained in:
Colin Walters 2009-06-16 10:34:13 -04:00 committed by Robert Bragg
parent f8e9565482
commit 63c84c46f8

View File

@ -1438,6 +1438,7 @@ cogl_vertex_buffer_submit_real (CoglVertexBuffer *buffer)
for (tmp = buffer->submitted_vbos; tmp != NULL; tmp = tmp->next)
cogl_vertex_buffer_vbo_free (tmp->data, TRUE);
g_list_free (buffer->submitted_vbos);
g_list_free (new_vbos);
buffer->submitted_vbos = final_vbos;
}