vaapivideobufferpool: fix leak of created allocator
authorHyunjun Ko <zzoon@igalia.com>
Thu, 27 Apr 2017 05:42:55 +0000 (14:42 +0900)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 27 Apr 2017 09:03:02 +0000 (11:03 +0200)
commitcce5ce4a9dd74f83224e437af9344db6b8daefdb
tree90801f5798b9bc5304b22ead972a98eabf4509bf
parent158b44fc1ed7d8fb48bd1db9a36b8ddb30f38c5b
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
gst/vaapi/gstvaapivideobufferpool.c