diff options
author | Hyunjun Ko <zzoon@igalia.com> | 2017-04-27 14:42:55 +0900 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2017-04-27 11:03:02 +0200 |
commit | cce5ce4a9dd74f83224e437af9344db6b8daefdb (patch) | |
tree | 90801f5798b9bc5304b22ead972a98eabf4509bf | |
parent | 158b44fc1ed7d8fb48bd1db9a36b8ddb30f38c5b (diff) |
vaapivideobufferpool: fix leak of created allocator
Since it's created by itself, it should be unref-counted
after gst_buffer_pool_config_set_allocator call. Afterwards,
this allocator will be ref-counted again when assigning to priv->allocator.
https://bugzilla.gnome.org/show_bug.cgi?id=781577
-rw-r--r-- | gst/vaapi/gstvaapivideobufferpool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapivideobufferpool.c b/gst/vaapi/gstvaapivideobufferpool.c index 1834bd75..2782403a 100644 --- a/gst/vaapi/gstvaapivideobufferpool.c +++ b/gst/vaapi/gstvaapivideobufferpool.c @@ -179,6 +179,7 @@ gst_vaapi_video_buffer_pool_set_config (GstBufferPool * pool, allocator = gst_vaapi_video_allocator_new (priv->display, &new_vip, surface_alloc_flags, 0); gst_buffer_pool_config_set_allocator (config, allocator, NULL); + gst_object_unref (allocator); } } |