Browse Source

Dispose data transfer in InProcessDragSource

pull/20926/head
Julien Lebosquain 7 months ago
parent
commit
ff8b3b5658
No known key found for this signature in database GPG Key ID: 1833CAD10ACC46FD
  1. 1
      src/Avalonia.Controls/Platform/InProcessDragSource.cs

1
src/Avalonia.Controls/Platform/InProcessDragSource.cs

@ -63,6 +63,7 @@ namespace Avalonia.Platform
using (_result.Subscribe(new AnonymousObserver<DragDropEffects>(tcs))) using (_result.Subscribe(new AnonymousObserver<DragDropEffects>(tcs)))
{ {
var effect = await tcs.Task; var effect = await tcs.Task;
dataTransfer.Dispose();
return effect; return effect;
} }
} }

Loading…
Cancel
Save