Free URI lists

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
This commit is contained in:
Federico Mena Quintero 2012-12-03 16:45:25 -06:00
parent 0a0eee816a
commit 08334f5258

View File

@ -1352,9 +1352,7 @@ free_drag_data (GtkPlacesSidebar *sidebar)
sidebar->drag_data_received = FALSE; sidebar->drag_data_received = FALSE;
if (sidebar->drag_list) { if (sidebar->drag_list) {
#if DO_NOT_COMPILE g_list_free_full (sidebar->drag_list, g_free);
nautilus_drag_destroy_selection_list (sidebar->drag_list);
#endif
sidebar->drag_list = NULL; sidebar->drag_list = NULL;
} }
} }
@ -1631,7 +1629,7 @@ drag_data_received_callback (GtkWidget *widget,
nautilus_file_operations_copy_move (uris, NULL, drop_uri, nautilus_file_operations_copy_move (uris, NULL, drop_uri,
real_action, GTK_WIDGET (tree_view), real_action, GTK_WIDGET (tree_view),
NULL, NULL); NULL, NULL);
nautilus_drag_destroy_selection_list (selection_list); g_list_free_full (selection_list, g_free);
g_list_free (uris); g_list_free (uris);
success = TRUE; success = TRUE;
break; break;