st/mesa: set compressed_data to NULL when freed
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 9 Jul 2020 14:59:39 +0000 (16:59 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 10 Jul 2020 07:30:26 +0000 (09:30 +0200)
commit51bdaf0b601522dfc599bd352806e66ef56876a3
treedcb51916f1030ecb7d7ee298185ea4836800e387
parentca51f75f9d341a462b293c367a51584a7a43a1e8
st/mesa: set compressed_data to NULL when freed

Reported-by: Karol Herbst <kherbst@redhat.com>
Fixes: b6db703e0f0 ("st/mesa: make texture views inherit compressed_data storage")
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Tested-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5821>
src/mesa/state_tracker/st_cb_texture.c