plugins: avoid possible memory leaks
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Wed, 8 Jun 2016 16:44:34 +0000 (18:44 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Wed, 8 Jun 2016 17:20:33 +0000 (19:20 +0200)
commit4c99077af414064e3443b2c17a33858e5b97dee2
tree2a150c568016a8c9d4c73d3790c21780c2da69cd
parent8d7a0ae16c175165d62ec6e8fb45cc43798129c6
plugins: avoid possible memory leaks

Get the pool config just before use it, to avoid a memory leak if the
allocator cannot be instantiated. Similarly, return FALSE if the configuration
cannot be set, avoid keep a not used allocator in the pool.
gst/vaapi/gstvaapipluginbase.c