mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
ext/faad/gstfaad.c: Don't leak GstAudioChannelPosition. Fixes #529378.
Original commit message from CVS: * ext/faad/gstfaad.c: Don't leak GstAudioChannelPosition. Fixes #529378.
This commit is contained in:
parent
c64da4164b
commit
e868ac2c3a
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-04-22 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
* ext/faad/gstfaad.c:
|
||||||
|
Don't leak GstAudioChannelPosition. Fixes #529378.
|
||||||
|
|
||||||
2008-04-22 Wim Taymans <wim.taymans@collabora.co.uk>
|
2008-04-22 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
* gst/sdp/gstsdpdemux.c: (request_pt_map):
|
* gst/sdp/gstsdpdemux.c: (request_pt_map):
|
||||||
|
|
|
@ -443,7 +443,7 @@ static GstAudioChannelPosition *
|
||||||
gst_faad_chanpos_to_gst (GstFaad * faad, guchar * fpos, guint num,
|
gst_faad_chanpos_to_gst (GstFaad * faad, guchar * fpos, guint num,
|
||||||
gboolean * channel_map_failed)
|
gboolean * channel_map_failed)
|
||||||
{
|
{
|
||||||
GstAudioChannelPosition *pos = g_new (GstAudioChannelPosition, num);
|
GstAudioChannelPosition *pos;
|
||||||
guint n;
|
guint n;
|
||||||
gboolean unknown_channel = FALSE;
|
gboolean unknown_channel = FALSE;
|
||||||
|
|
||||||
|
@ -459,6 +459,7 @@ gst_faad_chanpos_to_gst (GstFaad * faad, guchar * fpos, guint num,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pos = g_new (GstAudioChannelPosition, num);
|
||||||
for (n = 0; n < num; n++) {
|
for (n = 0; n < num; n++) {
|
||||||
GST_DEBUG_OBJECT (faad, "faad channel %d as %d", n, fpos[n]);
|
GST_DEBUG_OBJECT (faad, "faad channel %d as %d", n, fpos[n]);
|
||||||
switch (fpos[n]) {
|
switch (fpos[n]) {
|
||||||
|
|
Loading…
Reference in a new issue