diff options
author | Michael Smith <msmith@xiph.org> | 2005-12-15 10:30:14 +0000 |
---|---|---|
committer | Michael Smith <msmith@xiph.org> | 2005-12-15 10:30:14 +0000 |
commit | e1eae4061d4a64a8b5f06e20ed8a3ce94d27dbac (patch) | |
tree | 8eff18439cc272301dd1e9ed29d66f9f8d1c0730 /gst | |
parent | c6b2b19ca2b7f304bdabfb4633366af5d3ebc19f (diff) | |
download | gst-plugins-bad-e1eae4061d4a64a8b5f06e20ed8a3ce94d27dbac.tar.gz gst-plugins-bad-e1eae4061d4a64a8b5f06e20ed8a3ce94d27dbac.tar.bz2 gst-plugins-bad-e1eae4061d4a64a8b5f06e20ed8a3ce94d27dbac.zip |
gst/audioresample/gstaudioresample.c: Don't leak all input buffers to audioresample.
Original commit message from CVS:
* gst/audioresample/gstaudioresample.c:
Don't leak all input buffers to audioresample.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/audioresample/gstaudioresample.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c index 16c01a79..e907dbfa 100644 --- a/gst/audioresample/gstaudioresample.c +++ b/gst/audioresample/gstaudioresample.c @@ -480,7 +480,7 @@ static GstFlowReturn { GstAudioresample *audioresample; ResampleState *r; - guchar *data; + guchar *data, *datacopy; gulong size; GstClockTime timestamp; @@ -514,7 +514,8 @@ static GstFlowReturn } /* need to memdup, resample takes ownership. */ - resample_add_input_data (r, g_memdup (data, size), size, NULL, NULL); + datacopy = g_memdup (data, size); + resample_add_input_data (r, datacopy, size, g_free, datacopy); return audioresample_do_output (audioresample, outbuf); } |