From: Brian Date: Fri, 28 Dec 2007 21:25:09 +0000 (-0700) Subject: unref buffer after drawing, fixes rastpos mem leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=678db26b9d2db0c76e7676b5499d8d55a5619a94;p=mesa.git unref buffer after drawing, fixes rastpos mem leak --- diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index b3d463043d4..96db9e3c03b 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -616,6 +616,7 @@ st_feedback_draw_vbo(GLcontext *ctx, if (draw->vertex_buffer[i].buffer) { pipe->winsys->buffer_unmap(pipe->winsys, draw->vertex_buffer[i].buffer); + winsys->buffer_reference(winsys, &draw->vertex_buffer[i].buffer, NULL); draw_set_mapped_vertex_buffer(draw, i, NULL); } }