gst/ffmpegcolorspace/gstffmpegcolorspace.c: Fix memleak (#154815).

Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* gst/ffmpegcolorspace/gstffmpegcolorspace.c:
(gst_ffmpegcsp_pad_link):
Fix memleak (#154815).
This commit is contained in:
Ronald S. Bultje 2004-12-16 12:27:05 +00:00
parent 90150ccd4d
commit 15a5bab8ce
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2004-12-16 Sebastien Cote <sc5@hermes.usherb.ca>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/ffmpegcolorspace/gstffmpegcolorspace.c:
(gst_ffmpegcsp_pad_link):
Fix memleak (#154815).
2004-12-16 James Bowes <bowes@cs.dal.ca> 2004-12-16 James Bowes <bowes@cs.dal.ca>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net> Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>

View file

@ -230,6 +230,7 @@ gst_ffmpegcsp_pad_link (GstPad * pad, const GstCaps * caps)
gst_value_get_fraction_denominator (par), NULL); gst_value_get_fraction_denominator (par), NULL);
} }
ret = gst_pad_try_set_caps (otherpad, caps); ret = gst_pad_try_set_caps (otherpad, caps);
gst_caps_free (caps);
if (GST_PAD_LINK_FAILED (ret)) { if (GST_PAD_LINK_FAILED (ret)) {
return ret; return ret;
} }