Fix clang-tidy: readability-non-const-parameter (3)
[geeqie.git] / src / uri-utils.cc
index 32a9a0c..5b5888a 100644 (file)
@@ -40,7 +40,7 @@ void warning_dialog_dnd_uri_error(GList *uri_error_list)
                        g_free(prev);
                        }
                }
-       warning_dialog(_("Drag and Drop failed"), msg, GTK_STOCK_DIALOG_WARNING, nullptr);
+       warning_dialog(_("Drag and Drop failed"), msg, GQ_ICON_DIALOG_WARNING, nullptr);
        g_free(msg);
 }
 
@@ -71,7 +71,7 @@ gchar **uris_from_filelist(GList *list)
 {
        GList *path_list = filelist_to_path_list(list);
        gchar **ret = uris_from_pathlist(path_list);
-       string_list_free(path_list);
+       g_list_free_full(path_list, g_free);
        return ret;
 }
 
@@ -139,7 +139,7 @@ GList *uri_filelist_from_uris(gchar **uris, GList **uri_error_list)
 {
        GList *path_list = uri_pathlist_from_uris(uris, uri_error_list);
        GList *filelist = filelist_from_path_list(path_list);
-       string_list_free(path_list);
+       g_list_free_full(path_list, g_free);
        return filelist;
 }
 
@@ -151,7 +151,7 @@ GList *uri_filelist_from_gtk_selection_data(GtkSelectionData *selection_data)
        if(errors)
                {
                warning_dialog_dnd_uri_error(errors);
-               string_list_free(errors);
+               g_list_free_full(errors, g_free);
                }
        g_strfreev(uris);
        return ret;