summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ext/faad/gstfaad.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f8fce444..8b8948e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* gst/sdp/gstsdpdemux.c: (request_pt_map):
diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c
index 0d482310..a65550d3 100644
--- a/ext/faad/gstfaad.c
+++ b/ext/faad/gstfaad.c
@@ -443,7 +443,7 @@ static GstAudioChannelPosition *
gst_faad_chanpos_to_gst (GstFaad * faad, guchar * fpos, guint num,
gboolean * channel_map_failed)
{
- GstAudioChannelPosition *pos = g_new (GstAudioChannelPosition, num);
+ GstAudioChannelPosition *pos;
guint n;
gboolean unknown_channel = FALSE;
@@ -459,6 +459,7 @@ gst_faad_chanpos_to_gst (GstFaad * faad, guchar * fpos, guint num,
return NULL;
}
+ pos = g_new (GstAudioChannelPosition, num);
for (n = 0; n < num; n++) {
GST_DEBUG_OBJECT (faad, "faad channel %d as %d", n, fpos[n]);
switch (fpos[n]) {