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 /ext | |
parent | c64da4164b4aceb2a5744162dcc60d5173a205c5 (diff) | |
download | gst-plugins-bad-e868ac2c3a7414f4f5324eadbd2f53b0af4e4f82.tar.gz gst-plugins-bad-e868ac2c3a7414f4f5324eadbd2f53b0af4e4f82.tar.bz2 gst-plugins-bad-e868ac2c3a7414f4f5324eadbd2f53b0af4e4f82.zip |
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.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/faad/gstfaad.c | 3 |
1 files changed, 2 insertions, 1 deletions
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]) { |