mesa/main: Free ctx->DrawIndirectBuffer during teardown
authorAaron Watry <awatry@gmail.com>
Thu, 2 Jan 2014 17:18:09 +0000 (11:18 -0600)
committerAaron Watry <awatry@gmail.com>
Thu, 16 Jan 2014 16:10:04 +0000 (10:10 -0600)
commit188383591d6d657b557a5407ee9b7b993f79c53b
treea1a538c93aef5a0dadc55d5e13a6faeb69e5d049
parentce3528896b37c7d8ef051780e29ea9588fada9da
mesa/main: Free ctx->DrawIndirectBuffer during teardown

ctx->DrawIndirectBuffer wasn't being free'd in _mesa_free_buffer_objects

With this patch, "valgrind --leak-check=full glxgears" on evergreen (CEDAR)
now shows:

LEAK SUMMARY:
   definitely lost: 0 bytes in 0 blocks
   indirectly lost: 0 bytes in 0 blocks
     possibly lost: 0 bytes in 0 blocks
   still reachable: 70,228 bytes in 651 blocks
        suppressed: 0 bytes in 0 blocks

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/main/bufferobj.c