GNOME Bugzilla – Bug 734523
glbufferpool: Unref allocator after usage
Last modified: 2014-08-13 15:06:03 UTC
gst_allocator_find() returns a reference to a GstAllocator. This needs to be unreffed when the bufferpool is finalized. The attached patch adds the unreferencing.
Created attachment 283044 [details] [review] glbufferpool: fix allocator leak in some cases Something like this? (But then priv->allocator is not actually ever used, so might just as well get rid of it; same for priv->params btw).
Created attachment 283049 [details] [review] glbufferpool: fix allocator leak in some cases (v2) Fix silly bug (unref old allocator not new one before storing the new one).
As discussed elsewhere, your patch is more fullfledged than mine, so I prefer yours. I'll refrain from uploading mine. :)
commit 21e6989848a081c952c0f0dda1275870f43cb2f2 Author: Tim-Philipp Müller <tim@centricular.com> Date: Sun Aug 10 22:58:22 2014 +0100 glbufferpool: fix allocator leak in some cases Spotted by Sebastian Rasmussen. https://bugzilla.gnome.org/show_bug.cgi?id=734523