# HG changeset patch # User nenolod # Date 1134588987 28800 # Node ID 8eab873f20a8d46ac65c65ea5fc68ea5dbaff12e # Parent 1e2bd3df8981605ddf62a8b3de7bcf0577fee64d [svn] possible DND fix for konqueror. (cleaned up version of fixed version of my cleanups... i will NOT code at 3 AM again.). diff -r 1e2bd3df8981 -r 8eab873f20a8 audacious/mainwin.c --- a/audacious/mainwin.c Wed Dec 14 11:21:10 2005 -0800 +++ b/audacious/mainwin.c Wed Dec 14 11:36:27 2005 -0800 @@ -1816,7 +1816,7 @@ guint time, gpointer user_data) { - gchar **sourcelist, *path; + gchar **iter, **sourcelist, *path; gchar *decoded; gboolean not_font = FALSE; @@ -1826,9 +1826,9 @@ return; } - sourcelist = g_strsplit((gchar *)(selection_data->data),"\r\n",-1); - - for (path = *sourcelist; *path; path = *(++sourcelist)) + iter = sourcelist = g_strsplit((gchar *)(selection_data->data),"\r\n",-1); + + for (path = *sourcelist; path, *path; path = *(++sourcelist)) { if (str_has_prefix_nocase(path, "fonts:///")) { @@ -1859,10 +1859,9 @@ } playlist_add_url(path); } - } - g_strfreev(sourcelist); + g_strfreev(iter); if (not_font) bmp_playback_initiate();