Mercurial > audlegacy-plugins
diff src/madplug/configure.c @ 651:b9167008fc3f trunk
[svn] - strings in audmad_config should be freed before update. thus constant initializer has been replaced with g_strdup().
| author | yaz |
|---|---|
| date | Wed, 14 Feb 2007 18:03:22 -0800 |
| parents | ca4cd00ca0c8 |
| children | 1733b12ef974 |
line wrap: on
line diff
--- a/src/madplug/configure.c Wed Feb 14 10:15:53 2007 -0800 +++ b/src/madplug/configure.c Wed Feb 14 18:03:22 2007 -0800 @@ -57,15 +57,18 @@ audmad_config.hard_limit = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(hard_limit)); text = gtk_entry_get_text(GTK_ENTRY(RG_default)); + g_free(audmad_config.replaygain.default_db); audmad_config.replaygain.default_db = g_strdup(text); text = gtk_entry_get_text(GTK_ENTRY(pregain)); + g_free(audmad_config.pregain_db); audmad_config.pregain_db = g_strdup(text); audmad_config.title_override = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(title_override)); text = gtk_entry_get_text(GTK_ENTRY(title_id3_entry)); + g_free(audmad_config.id3_format); audmad_config.id3_format = g_strdup(text); audmad_config_compute(&audmad_config);
