From: Michal Krol Date: Thu, 14 Feb 2008 20:03:12 +0000 (+0100) Subject: gallium: Fix memory leak. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19780237ff0e6a89f31ecb9079781568bc2d3fdc;p=mesa.git gallium: Fix memory leak. --- diff --git a/src/mesa/pipe/draw/draw_vbuf.c b/src/mesa/pipe/draw/draw_vbuf.c index be96c8fdeb1..71ac73912b8 100644 --- a/src/mesa/pipe/draw/draw_vbuf.c +++ b/src/mesa/pipe/draw/draw_vbuf.c @@ -523,6 +523,9 @@ static void vbuf_destroy( struct draw_stage *stage ) if(vbuf->vf) draw_vf_destroy( vbuf->vf ); + if (vbuf->render) + vbuf->render->destroy( vbuf->render ); + FREE( stage ); }