mesa: improve free() cleanup in generate_mipmap_compressed()
authorBrian Paul <brianp@vmware.com>
Fri, 26 Jul 2013 15:50:36 +0000 (09:50 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 31 Jul 2013 12:53:48 +0000 (06:53 -0600)
commite5f32a0b3a9f8541f0c8ffc5f303612ac9963bb1
tree4148db65a5bc983a605652fa6bb631dcccb74e1e
parentfdbd6a50337155408b8088ba3a38c370ab66a23e
mesa: improve free() cleanup in generate_mipmap_compressed()

Free all our temporary buffers in one place at the end of the
function.  Fixes memory leak detected by Coverity.

Note: This is a candidate for the 9.x branches
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/main/mipmap.c