Vulkan: fix a couple invalid memory access
commit b947ba2b11f1d3f8e826395ac7d3bad0f28e0146
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.
commit fefe647279d2f18166be8d6c7e40d9d263fc6627
vkimagememory: actually check the length of a ptr array
Not it's value is > 0 which should always be true.
Edited by Matthew Waters