From a6e3e71fe3fe8d60912cc1f4b510ef9151edeed6 Mon Sep 17 00:00:00 2001 From: Yves Lefebvre Date: Fri, 16 Feb 2007 10:15:46 +0000 Subject: [PATCH] gst/videorate/gstvideorate.c: Don't leak caps. Fixes #408278. Original commit message from CVS: Patch by: Yves Lefebvre * gst/videorate/gstvideorate.c: (gst_video_rate_setcaps): Don't leak caps. Fixes #408278. --- ChangeLog | 7 +++++++ gst/videorate/gstvideorate.c | 1 + 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6f9e443456..65dea5a27e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-02-16 Tim-Philipp Müller + + Patch by: Yves Lefebvre + + * gst/videorate/gstvideorate.c: (gst_video_rate_setcaps): + Don't leak caps. Fixes #408278. + 2007-02-15 Stefan Kost * ext/cdparanoia/gstcdparanoiasrc.h: diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index d6d7417295..1ca77dc82c 100644 --- a/gst/videorate/gstvideorate.c +++ b/gst/videorate/gstvideorate.c @@ -354,6 +354,7 @@ gst_video_rate_setcaps (GstPad * pad, GstCaps * caps) videorate->from_rate_denominator = rate_denominator; } gst_pad_set_caps (otherpad, caps); + gst_caps_unref (caps); ret = TRUE; } gst_object_unref (opeer);