videopool: fix mem leak
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 12 Apr 2012 19:13:08 +0000 (21:13 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Sat, 14 Apr 2012 08:36:02 +0000 (10:36 +0200)
commit3f3dceb6751d3047388f78ac6badd8168db7bac1
tree605b66c176db90fc56cfd13fcd84f7560ef9e43b
parent188c3675375cc12e4a6dd282f7f1f427d4e2fdb5
videopool: fix mem leak

When setting its config, the pool increase the ref count of the allocator, but
at finalize the ref count is also increased rather than decreased.

This one-liner patch changes the gst_allocator_ref() for gst_allocator_unref()

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=674011
gst-libs/gst/video/gstvideopool.c