filechooserwidget: Fix file chooser crash when dropping empty file list

This commit is contained in:
Fina Wilke 2023-01-30 19:28:24 +00:00 committed by Matthias Clasen
parent 442cd4a369
commit 35e3c22832

View File

@ -1566,6 +1566,9 @@ file_list_drag_drop_cb (GtkDropTarget *dest,
files = g_value_get_boxed (value);
if (files == NULL)
return TRUE;
data = g_new0 (FileListDragData, 1);
data->impl = g_object_ref (impl);
data->files = g_slist_copy_deep (files, (GCopyFunc) g_object_ref, NULL);