vulkanimagememory: fix use-after-free releasing a view
authorMatthew Waters <matthew@centricular.com>
Fri, 29 May 2020 12:21:10 +0000 (22:21 +1000)
committerMatthew Waters <matthew@centricular.com>
Tue, 2 Jun 2020 03:58:13 +0000 (13:58 +1000)
commita4d900332bae1648c034b827ac0eefbf87faaee6
tree03dacb4658003ebc466cbc3a15b3dccc3a888c3a
parentdd44bc3a2dd4e380eb8afbb591d68706950ebe70
vulkanimagememory: fix use-after-free releasing a view

If the view has the last reference to the image, then
gst_clear_mini_object will destroy the image and the lock used in the
next line.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1314>
gst-libs/gst/vulkan/gstvkimagememory.c