summaryrefslogtreecommitdiff
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-01-30 19:10:45 (GMT)
committer Tim-Philipp Müller <tim.muller@collabora.co.uk>2010-01-30 19:15:15 (GMT)
commit4cb5f323080a493d6a102afe9cb7700eee3410a3 (patch) (side-by-side diff)
treeafad7c782f3ea5e23d023e9e09630d924b535ac8
parent29c509a7b82579eb055a37f55e2110e20dd7e3b9 (diff)
downloadgst-plugins-ugly-4cb5f323080a493d6a102afe9cb7700eee3410a3.zip
gst-plugins-ugly-4cb5f323080a493d6a102afe9cb7700eee3410a3.tar.gz
rtspreal: fix minor memory leak
Caps take their own reference when a buffer is added to them, so unref buffer after adding it to caps (#608533).
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--gst/realmedia/rtspreal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/realmedia/rtspreal.c b/gst/realmedia/rtspreal.c
index 81d75bb..1c07030 100644
--- a/gst/realmedia/rtspreal.c
+++ b/gst/realmedia/rtspreal.c
@@ -593,7 +593,9 @@ rtsp_ext_real_parse_sdp (GstRTSPExtension * ext, GstSDPMessage * sdp,
GST_BUFFER_SIZE (buf) = offset;
/* Set on caps */
+ GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_IN_CAPS);
gst_structure_set (props, "config", GST_TYPE_BUFFER, buf, NULL);
+ gst_buffer_unref (buf);
/* Overwrite encoding and media fields */
gst_structure_set (props, "encoding-name", G_TYPE_STRING, "X-REAL-RDT", NULL);