diff options
author | René Stadler <rene.stadler@collabora.co.uk> | 2011-10-13 12:23:59 +0200 |
---|---|---|
committer | René Stadler <rene.stadler@collabora.co.uk> | 2011-10-13 12:23:59 +0200 |
commit | 4b79582925a3da314ae1309dcc3d9023ba1dcde1 (patch) | |
tree | dc9a2bba67f3a3052fd2d167f3a5e480ece548cf /libs | |
parent | 72f3c7c7a305a1d5918262715934885a06072ca8 (diff) |
basesrc: fix caps leak
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gst/base/gstbasesrc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 382cf88a8..e825f69d1 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -2855,6 +2855,9 @@ gst_base_src_negotiate (GstBaseSrc * basesrc) caps = gst_pad_get_current_caps (basesrc->srcpad); result = gst_base_src_prepare_allocation (basesrc, caps); + + if (caps) + gst_caps_unref (caps); } return result; } |