d3d11memory: Fix potential crash in GstD3D11PoolAllocator
authorSeungha Yang <seungha@centricular.com>
Thu, 12 Jan 2023 13:17:24 +0000 (22:17 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 12 Jan 2023 19:26:41 +0000 (19:26 +0000)
commit434337c3e1566a7f855218180d4fd5d56abe34fc
tree2c67dce0e9486c9054105ed33997111b28416149
parentfdc3ee97aed4c8a46cb74a8d4a589e1f46c6a97d
d3d11memory: Fix potential crash in GstD3D11PoolAllocator

Allocator object can be the final refcount holder, when a GstD3D11Memory
is being released. Do unref allocator once there's no more
remaining operation.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3715>
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11memory.cpp