changeset 802:7ac48f3855b1 trunk

[svn] - add cleanup code.
author yaz
date Sun, 11 Mar 2007 23:39:38 -0700
parents dd06b14a43a9
children 4a2b2677dd9b
files ChangeLog src/madplug/plugin.c
diffstat 2 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Mar 11 10:09:52 2007 -0700
+++ b/ChangeLog	Sun Mar 11 23:39:38 2007 -0700
@@ -1,3 +1,11 @@
+2007-03-11 17:09:52 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [1700]
+  - implement stricter detection rules for MP3. patch by Matti Hamalainen (ccr).
+  
+  trunk/src/madplug/plugin.c |  118 ++++++++++++++++++++++++++++++++++++---------
+  1 file changed, 95 insertions(+), 23 deletions(-)
+
+
 2007-03-11 13:31:32 +0000  Giacomo Lozito <james@develia.org>
   revision [1698]
   amidi-plug: changed VERSION to AMIDIPLUG_VERSION in fluidsynth backend; not that trivial, but this is how it's supposed to be
--- a/src/madplug/plugin.c	Sun Mar 11 10:09:52 2007 -0700
+++ b/src/madplug/plugin.c	Sun Mar 11 23:39:38 2007 -0700
@@ -175,6 +175,13 @@
 
 static void audmad_cleanup()
 {
+    g_free(audmad_config.pregain_db);
+    g_free(audmad_config.replaygain.default_db);
+    g_free(audmad_config.id3_format);
+
+    g_cond_free(mad_cond);
+    g_mutex_free(mad_mutex);
+    g_mutex_free(pb_mutex);
 }
 
 static gboolean mp3_head_check(guint32 head, gint *frameSize)