mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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
This commit is contained in:
parent
188c367537
commit
3f3dceb675
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ gst_video_buffer_pool_finalize (GObject * object)
|
||||||
gst_caps_unref (priv->caps);
|
gst_caps_unref (priv->caps);
|
||||||
|
|
||||||
if (priv->allocator)
|
if (priv->allocator)
|
||||||
gst_allocator_ref (priv->allocator);
|
gst_allocator_unref (priv->allocator);
|
||||||
|
|
||||||
G_OBJECT_CLASS (gst_video_buffer_pool_parent_class)->finalize (object);
|
G_OBJECT_CLASS (gst_video_buffer_pool_parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue