meta: Plug memory leak
authorBen Widawsky <benjamin.widawsky@intel.com>
Sat, 7 Mar 2015 01:31:00 +0000 (17:31 -0800)
committerBen Widawsky <benjamin.widawsky@intel.com>
Mon, 9 Mar 2015 23:32:33 +0000 (16:32 -0700)
commit7aba4ab1f355ea1a5870b3deb4b295565132dfc5
treec0869c0dc449762830f505dadd34e51ec9192473
parente95969cd9548033250ba12f2adf11740319b41e7
meta: Plug memory leak

It looks like this has existed since
commit f5a477ab76b6e0b268387699cd2253a43db0dfae
Author: Ian Romanick <ian.d.romanick@intel.com>
Date:   Mon Dec 16 11:54:08 2013 -0800

    meta: Refactor shader generation code out of mipmap generation path

Valgrind was complaining on fbo-generatemipmap-formats

v2: Instead, do the allocation after the early return block (v2)

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/common/meta.c