From 3f3dceb6751d3047388f78ac6badd8168db7bac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 12 Apr 2012 21:13:08 +0200 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/video/gstvideopool.c b/gst-libs/gst/video/gstvideopool.c index 96801d1b96..6246d37f00 100644 --- a/gst-libs/gst/video/gstvideopool.c +++ b/gst-libs/gst/video/gstvideopool.c @@ -328,7 +328,7 @@ gst_video_buffer_pool_finalize (GObject * object) gst_caps_unref (priv->caps); if (priv->allocator) - gst_allocator_ref (priv->allocator); + gst_allocator_unref (priv->allocator); G_OBJECT_CLASS (gst_video_buffer_pool_parent_class)->finalize (object); }