Browse Source
Fix null reference crash when window is closed during drag-and-drop (#18760)
pull/18767/head
AnastassiaP
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
0 deletions
-
native/Avalonia.Native/src/OSX/AvnView.mm
|
|
|
@ -836,6 +836,8 @@ static void ConvertTilt(NSPoint tilt, float* xTilt, float* yTilt) |
|
|
|
|
|
|
|
auto effects = ConvertDragDropEffects(nsop); |
|
|
|
auto parent = _parent.tryGet(); |
|
|
|
if (!parent) |
|
|
|
return NSDragOperationNone; |
|
|
|
int reffects = (int)parent->TopLevelEvents |
|
|
|
->DragEvent(type, point, modifiers, effects, |
|
|
|
CreateClipboard([info draggingPasteboard], nil), |
|
|
|
|