summaryrefslogtreecommitdiff
path: root/gst/gdp
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2015-12-16 08:52:12 +0900
committerSebastian Dröge <sebastian@centricular.com>2015-12-16 09:40:39 +0100
commit1b2a9a9c844904840aac31e9451840b5f5c0cf80 (patch)
tree96848002d2405fa89742952027af4fc7cff135ff /gst/gdp
parent34586e0ffdf0878210ec9142c54e1db428f5ba42 (diff)
downloadgstreamer-plugins-bad-1b2a9a9c844904840aac31e9451840b5f5c0cf80.tar.gz
gdppay: Fix buffer memory leak
outbuffer being allocated is not being pushed to queue for EOS event and hence should be freed. https://bugzilla.gnome.org/show_bug.cgi?id=759519
Diffstat (limited to 'gst/gdp')
-rw-r--r--gst/gdp/gstgdppay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c
index 8a8d593d6..b4284624a 100644
--- a/gst/gdp/gstgdppay.c
+++ b/gst/gdp/gstgdppay.c
@@ -577,6 +577,8 @@ gst_gdp_pay_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
flowret = gst_gdp_queue_buffer (this, outbuffer);
if (flowret != GST_FLOW_OK)
goto push_error;
+ } else {
+ gst_buffer_unref (outbuffer);
}
done: