diff options
Diffstat (limited to 'libnautilus-private/nautilus-icon-dnd.c')
-rw-r--r-- | libnautilus-private/nautilus-icon-dnd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-icon-dnd.c b/libnautilus-private/nautilus-icon-dnd.c index 0f9350f28..ba80aee40 100644 --- a/libnautilus-private/nautilus-icon-dnd.c +++ b/libnautilus-private/nautilus-icon-dnd.c @@ -1305,7 +1305,9 @@ drag_data_received_callback (GtkWidget *widget, case NAUTILUS_ICON_DND_URI_LIST: case NAUTILUS_ICON_DND_RESET_BACKGROUND: /* Save the data so we can do the actual work on drop. */ - g_assert (drag_info->selection_data == NULL); + if (drag_info->selection_data != NULL) { + gtk_selection_data_free (drag_info->selection_data); + } drag_info->selection_data = gtk_selection_data_copy (data); break; |