i965: fix resource leak
authorEric Engestrom <eric@engestrom.ch>
Sun, 10 Jun 2018 17:42:45 +0000 (18:42 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Mon, 11 Jun 2018 13:54:23 +0000 (14:54 +0100)
commite43c012433186481219146a988cf2dbc15352802
tree7642b183600c143759a7b3ece9627f439e44b8ad
parent55d1a77c29e2bf122e56d462aac255739b6f85e2
i965: fix resource leak

v2: intel_miptree_release() already takes care of the planes, no need
    to hand-code the loop (Lionel)

Coverity ID: 1436909
Fixes: 3352f2d746d3959b22ca4 "i965: Create multiple miptrees for planar YUV images"
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c