# HG changeset patch # User Tomasz Mon # Date 1197208120 -3600 # Node ID 46f8c5fb65751b4102d23ae5461fcf316493f687 # Parent 05140463a43e123eb3805918bec9dde38a424529 don't do skin_install_skin on faulty skins or archives that doesn't contain skin at all diff -r 05140463a43e -r 46f8c5fb6575 src/audacious/ui_preferences.c --- a/src/audacious/ui_preferences.c Sun Dec 09 14:41:10 2007 +0100 +++ b/src/audacious/ui_preferences.c Sun Dec 09 14:48:40 2007 +0100 @@ -1029,7 +1029,8 @@ } if (file_is_archive(path)) { - bmp_active_skin_load(path); + if (!bmp_active_skin_load(path)) + return; skin_install_skin(path); skin_view_update(GTK_TREE_VIEW(widget), GTK_WIDGET(skin_refresh_button));