diff audacious/widgets/skin.c @ 1833:3da01efb3225 trunk

[svn] - support for WA2 skins (no skin.hints)
author nenolod
date Thu, 05 Oct 2006 08:02:43 -0700
parents 3b6901e8e63f
children a1089ea6f436
line wrap: on
line diff
--- a/audacious/widgets/skin.c	Thu Oct 05 07:57:40 2006 -0700
+++ b/audacious/widgets/skin.c	Thu Oct 05 08:02:43 2006 -0700
@@ -540,13 +540,6 @@
 
     filename = find_file_recursively(path_p, "skin.hints");
 
-    if (filename == NULL)
-        return;
-
-#if 0
-    skin->description = read_ini_string(filename, "skin", "skinDescription");
-#endif
-
     skin->properties.mainwin_othertext = FALSE;
     tmp = read_ini_string(filename, "skin", "mainwinOthertext");
 
@@ -1051,7 +1044,8 @@
         g_free(tmp);
     }
 
-    g_free(filename);
+    if (filename != NULL)
+        g_free(filename);
 }
 
 static guint