summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2008-04-22 15:07:35 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2008-04-22 15:07:35 +0000
commite868ac2c3a7414f4f5324eadbd2f53b0af4e4f82 (patch)
treec86b7c9f41e9c0cfff181e392c143d5529b1ab37
parentc64da4164b4aceb2a5744162dcc60d5173a205c5 (diff)
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.
-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 f8fce4444..8b8948e96 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 0d4823103..a65550d36 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]) {