From c60a974ec0365e96540bb342de0970d655f6cd18 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 16 Jun 2009 10:34:13 -0400 Subject: [PATCH] Plug minor memory leak in cogl_vertex_buffer_submit_real Free a temporary list. --- common/cogl-vertex-buffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/cogl-vertex-buffer.c b/common/cogl-vertex-buffer.c index d62964374..ada1d0a19 100644 --- a/common/cogl-vertex-buffer.c +++ b/common/cogl-vertex-buffer.c @@ -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; }