meta: Fix error paths in meta_copy_image.c
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Mon, 8 Sep 2014 10:59:50 +0000 (13:59 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 23 Sep 2014 07:25:02 +0000 (10:25 +0300)
commitb9463813eeffbe3b03fbf681d0283a40ce84619a
tree72378803ffbbd7764b6663a8d23892d4b607516f
parente13a8dc37dde097710ea13bef24c022b263ea1eb
meta: Fix error paths in meta_copy_image.c

If _mesa_get_tex_image() return NULL there is already error
set in context. Other error pats free allocated texture.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/common/meta_copy_image.c