mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
vaapivideomemory: avoid NULL pointer unref if GstVaapiImage creation failed.
https://bugzilla.gnome.org/show_bug.cgi?id=735156
This commit is contained in:
parent
c257c3232a
commit
aa4d1f5a1e
1 changed files with 2 additions and 1 deletions
|
@ -654,7 +654,8 @@ gst_vaapi_video_allocator_new (GstVaapiDisplay * display,
|
|||
gst_video_info_update_from_image (&allocator->image_info, image);
|
||||
gst_vaapi_image_unmap (image);
|
||||
} while (0);
|
||||
gst_vaapi_object_unref (image);
|
||||
if (image)
|
||||
gst_vaapi_object_unref (image);
|
||||
}
|
||||
|
||||
allocator->image_pool = gst_vaapi_image_pool_new (display,
|
||||
|
|
Loading…
Reference in a new issue