intel: Fix memory leak in intel_miptree_create()
authorChad Versace <chad.versace@linux.intel.com>
Tue, 27 Dec 2011 18:10:05 +0000 (10:10 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Thu, 29 Dec 2011 18:47:44 +0000 (10:47 -0800)
commit747f0307626ef5bcf2f889ab66bcc95ab8eda2c8
treeff3ec733bfcb558d48e33454865b15a10f28eb0f
parent069901e2f5a8f4a58047d25335f2526f1acc7234
intel: Fix memory leak in intel_miptree_create()

On failure, intel_miptree_create() needs to *release* the miptree, not
just free it, so that the stencil_mt gets released too.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c