diff src/audacious/widgets/skin.c @ 2587:2ef492ad3904 trunk

[svn] - always make sure we are operating on a copy of the ini string
author nenolod
date Tue, 27 Feb 2007 02:15:51 -0800
parents 83afa9e1ac64
children 6364a4534889
line wrap: on
line diff
--- a/src/audacious/widgets/skin.c	Mon Feb 26 20:11:44 2007 -0800
+++ b/src/audacious/widgets/skin.c	Tue Feb 27 02:15:51 2007 -0800
@@ -1163,7 +1163,7 @@
 
     if (inifile || default_hex) {
         if (inifile) {
-            value = read_ini_string(inifile, section, key);
+            value = g_strdup(read_ini_string(inifile, section, key));
             if (value == NULL) {
                 value = g_strdup(default_hex);
             }