chiark / gitweb /
debian: don't depend on essential packages
[disorder] / lib / wav.c
index 6558c693a27c735725a8af3c7591cef57ad33030..fe7ffbbf0443289018bf2852dbc5c364f5f5e764 100644 (file)
--- a/lib/wav.c
+++ b/lib/wav.c
@@ -196,7 +196,8 @@ error:
 }
 
 /** @brief Close a WAV file */
-void wav_destroy(struct wavfile attribute((unused)) *f) {
+void wav_destroy(struct wavfile *f) {
+  hreader_close(f->input);
 }
 
 /** @brief Visit all the data in a WAV file