ext/ffmpeg/gstffmpegcolorspace.c: Fix memleak (#154815).

Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* ext/ffmpeg/gstffmpegcolorspace.c: (gst_ffmpegcsp_pad_link):
Fix memleak (#154815).
This commit is contained in:
Ronald S. Bultje 2004-12-16 12:29:03 +00:00
parent 8dc3756ec3
commit bcb1f09609
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2004-12-16 Sebastien Cote <sc5@hermes.usherb.ca>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/ffmpeg/gstffmpegcolorspace.c: (gst_ffmpegcsp_pad_link):
Fix memleak (#154815).
2004-12-16 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/ffmpeg/gstffmpegcolorspace.c: (gst_ffmpegcsp_pad_link),

View file

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