From: Zeeshan Ali Date: Wed, 26 Oct 2005 14:19:21 +0000 (+0000) Subject: Fixed a small mem-leak. X-Git-Tag: RELEASE-0_9_5~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b235f7ee37d296fd1f14f1f2649a761083a4323;p=platform%2Fupstream%2Fgst-plugins-base.git Fixed a small mem-leak. Original commit message from CVS: Fixed a small mem-leak. --- diff --git a/ChangeLog b/ChangeLog index 171b5cb..0f58d8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-10-26 Zeeshan Ali + + * gst-libs/gst/rtp/gstbasertpdepayload.c: + (gst_base_rtp_depayload_base_init), (gst_base_rtp_depayload_push), + (gst_base_rtp_depayload_set_gst_timestamp), + (gst_base_rtp_depayload_queue_release): + Fixed a smalll memleak. + 2005-10-26 Zeeshan Ali * gst-libs/gst/rtp/gstbasertpdepayload.c: (gst_base_rtp_depayload_base_init), (gst_base_rtp_depayload_init), diff --git a/gst-libs/gst/rtp/gstbasertpdepayload.c b/gst-libs/gst/rtp/gstbasertpdepayload.c index 2aeb45d..5867bfe 100644 --- a/gst-libs/gst/rtp/gstbasertpdepayload.c +++ b/gst-libs/gst/rtp/gstbasertpdepayload.c @@ -281,13 +281,15 @@ gst_base_rtp_depayload_push (GstBaseRTPDepayload * filter, GstBuffer * rtp_buf) { GstBaseRTPDepayloadClass *bclass = GST_BASE_RTP_DEPAYLOAD_GET_CLASS (filter); GstBuffer *out_buf; + GstCaps *srccaps; /* let's send it out to processing */ out_buf = bclass->process (filter, rtp_buf); if (out_buf) { /* set the caps */ - gst_buffer_set_caps (GST_BUFFER (out_buf), - gst_pad_get_caps (filter->srcpad)); + srccaps = gst_pad_get_caps (filter->srcpad); + gst_buffer_set_caps (GST_BUFFER (out_buf), srccaps); + gst_caps_unref (srccaps); /* set the timestamp * I am assuming here that the timestamp of the last RTP buffer * is the same as the timestamp wanted on the collector