diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2008-04-22 15:07:35 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2008-04-22 15:07:35 +0000 |
commit | e868ac2c3a7414f4f5324eadbd2f53b0af4e4f82 (patch) | |
tree | c86b7c9f41e9c0cfff181e392c143d5529b1ab37 | |
parent | c64da4164b4aceb2a5744162dcc60d5173a205c5 (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-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/faad/gstfaad.c | 3 |
2 files changed, 7 insertions, 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> * 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]) { |