diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2009-08-07 13:06:28 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2009-08-07 13:09:20 +0200 |
commit | 1f2a0d3b3daea4ef63a6d49208346a0561538f54 (patch) | |
tree | c3bdc6f7db3f9467d86906d8b882181de7998a85 | |
parent | 1f9525d8218cf96018b109dc682f74746e11487e (diff) | |
download | gst-plugins-bad-1f2a0d3b3daea4ef63a6d49208346a0561538f54.tar.gz gst-plugins-bad-1f2a0d3b3daea4ef63a6d49208346a0561538f54.tar.bz2 gst-plugins-bad-1f2a0d3b3daea4ef63a6d49208346a0561538f54.zip |
baseparse: fix minor memory leak
-rw-r--r-- | gst/aacparse/gstbaseparse.c | 1 | ||||
-rw-r--r-- | gst/amrparse/gstbaseparse.c | 1 | ||||
-rw-r--r-- | gst/flacparse/gstbaseparse.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/gst/aacparse/gstbaseparse.c b/gst/aacparse/gstbaseparse.c index b59319a5..ffb17f3f 100644 --- a/gst/aacparse/gstbaseparse.c +++ b/gst/aacparse/gstbaseparse.c @@ -950,6 +950,7 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer) GST_DEBUG_OBJECT (parse, "found valid frame but not enough data available (only %d bytes)", gst_adapter_available (parse->adapter)); + gst_buffer_unref (tmpbuf); goto done; } break; diff --git a/gst/amrparse/gstbaseparse.c b/gst/amrparse/gstbaseparse.c index 870492a8..f4d08fc7 100644 --- a/gst/amrparse/gstbaseparse.c +++ b/gst/amrparse/gstbaseparse.c @@ -950,6 +950,7 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer) GST_DEBUG_OBJECT (parse, "found valid frame but not enough data available (only %d bytes)", gst_adapter_available (parse->adapter)); + gst_buffer_unref (tmpbuf); goto done; } break; diff --git a/gst/flacparse/gstbaseparse.c b/gst/flacparse/gstbaseparse.c index 8fb2b2ae..24b3516f 100644 --- a/gst/flacparse/gstbaseparse.c +++ b/gst/flacparse/gstbaseparse.c @@ -1030,6 +1030,7 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer) GST_DEBUG_OBJECT (parse, "found valid frame but not enough data available (only %d bytes)", gst_adapter_available (parse->adapter)); + gst_buffer_unref (tmpbuf); goto done; } break; |