i965/miptree: Don't leak the clear_color_bo
authorNanley Chery <nanley.g.chery@intel.com>
Mon, 9 Apr 2018 18:27:08 +0000 (11:27 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Sat, 21 Apr 2018 00:14:37 +0000 (17:14 -0700)
commit010abacc95207f600bc750f01d690b1c899e112c
tree48b4641bb520e8b6eb5690a4e44040398bb5bf79
parent9d2ef3c9ecf9b2e00efa42ae245132d59571d08d
i965/miptree: Don't leak the clear_color_bo

Free the clear_color_bo in addition to freeing the
intel_miptree_aux_buffer which holds the reference to it.

Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c