mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
vkimagememory: actually check the length of a ptr array
Not it's value is > 0 which should always be true. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1314>
This commit is contained in:
parent
bafdade207
commit
dd44bc3a2d
1 changed files with 1 additions and 1 deletions
|
@ -414,7 +414,7 @@ _vk_image_mem_free (GstAllocator * allocator, GstMemory * memory)
|
|||
GST_CAT_TRACE (GST_CAT_VULKAN_IMAGE_MEMORY, "freeing image memory:%p "
|
||||
"id:%" G_GUINT64_FORMAT, mem, (guint64) mem->image);
|
||||
|
||||
g_warn_if_fail (mem->outstanding_views > 0);
|
||||
g_warn_if_fail (mem->outstanding_views->len == 0);
|
||||
g_ptr_array_unref (mem->outstanding_views);
|
||||
|
||||
g_ptr_array_foreach (mem->views, (GFunc) _free_view, NULL);
|
||||
|
|
Loading…
Reference in a new issue