st/nine: Fix volumetexture dtor on ctor failure
authorAxel Davy <davyaxel0@gmail.com>
Sun, 25 Nov 2018 13:37:53 +0000 (14:37 +0100)
committerAxel Davy <davyaxel0@gmail.com>
Sun, 23 Dec 2018 07:14:50 +0000 (08:14 +0100)
commitf91f748fabd7fec8f571124df23296c07102a983
tree78590e6dbe13beed6d0b4a64122bb9ca2ed4f944
parent1cc8192ad0be52220043d40f2c7ead149d479809
st/nine: Fix volumetexture dtor on ctor failure

The dtor is called on allocation failure,
thus we must check the volumes are allocated
before trying to release them.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/state_trackers/nine/volumetexture9.c