gallium: Fix memory leak.
authorMichal Krol <michal@tungstengraphics.com>
Thu, 14 Feb 2008 20:03:12 +0000 (21:03 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 15 Feb 2008 02:30:51 +0000 (11:30 +0900)
src/mesa/pipe/draw/draw_vbuf.c

index be96c8fdeb1b4673de86c4ea8129e10c1b2ec9d9..71ac73912b86bf0d2d5797709a84c431293be3a4 100644 (file)
@@ -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 );
 }