linux: Fix crash in Wayland when dragging and dropping a tab not belonging to Zed (#14995)

close #14189 

Release Notes:

- N/A
This commit is contained in:
CharlesChen0823 2024-07-23 11:20:53 +08:00 committed by GitHub
parent ddea18d546
commit eb210ca248
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1803,7 +1803,6 @@ impl Dispatch<wl_data_device::WlDataDevice, ()> for WaylandClientStatePtr {
// Prevent dropping text from other programs. // Prevent dropping text from other programs.
if paths.is_empty() { if paths.is_empty() {
data_offer.finish();
data_offer.destroy(); data_offer.destroy();
return; return;
} }