changeset 4204:f401e45cd4b3

fixed a warning caused by g_basename
author Cristi Magherusan <majeru@atheme.org>
date Sun, 20 Jan 2008 17:48:41 +0200
parents d9db67e2fef6
children 6a4c8ad14256 36338afdd736
files src/audacious/ui_equalizer.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_equalizer.c	Sun Jan 20 17:38:00 2008 +0200
+++ b/src/audacious/ui_equalizer.c	Sun Jan 20 17:48:41 2008 +0200
@@ -789,12 +789,12 @@
             return NULL;
 
         filename = g_filename_from_uri(file->uri,NULL,NULL);
-        name = g_basename(filename);
+        name = g_path_get_basename(filename);
         g_free(filename);
         g_print("The preset name is '%s'\n", name);
 
         preset = equalizer_preset_new(name);
-
+        g_free(name);
         preset->preamp = 20.0 - ((bands[10] * 40.0) / 64.0);
 
         for (i = 0; i < 10; i++)