mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
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.
This commit is contained in:
parent
bbddac17ae
commit
a3853fad02
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-12-15 Michael Smith <msmith@fluendo.com>
|
||||
|
||||
* gst/audioresample/gstaudioresample.c:
|
||||
Don't leak all input buffers to audioresample.
|
||||
|
||||
2005-12-15 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* ext/pango/gsttextoverlay.c: (gst_text_overlay_collected):
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue