st/nine: Fix leak at device destruction
authorAxel Davy <davyaxel0@gmail.com>
Mon, 8 Feb 2021 22:33:29 +0000 (23:33 +0100)
committerAxel Davy <davyaxel0@gmail.com>
Tue, 2 Mar 2021 19:07:07 +0000 (20:07 +0100)
commit7a1a1fc5d931e2b853c3f28aa763fb54de93eca2
tree2bec47b4cfee781aac2e7c59cf3e27df23049cef
parentd730f8d7a9bd3d9291562020503282dd94710717
st/nine: Fix leak at device destruction

At the release of the last object holding a reference
on the device, the device dtor was executed and
the objector dtor was ignored.

The proper way is to execute the object dtor, then
the device dtor.

The previous code was likely for a workaround against
something that was fixed since.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Acked-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9177>
src/gallium/frontends/nine/iunknown.c