]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - write.c
Merge remote-tracking branch 'boock/master'
[paraslash.git] / write.c
diff --git a/write.c b/write.c
index 8411003027e33ad3a9bcc43962efcf65547dea04..2ea9d2132bee5f64224f3f9d635af8f83777a33e 100644 (file)
--- a/write.c
+++ b/write.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005-2010 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2011 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -37,8 +37,9 @@ struct check_wav_task {
        int state;
        /** Number of channels. */
        unsigned channels;
-       unsigned sample_rate;
        unsigned sample_format;
+       /** Sample rate specified in wav header given by \a buf. */
+       unsigned sample_rate;
        /** The task structure used by the scheduler. */
        struct task task;
        struct btr_node *btrn;
@@ -215,6 +216,7 @@ out:
 
                w->close(wn);
                btr_free_node(wn->btrn);
+               w->free_config(wn->conf);
                free(wn->conf);
        }
        free(wns);