Browse Source

retain self (this)

repro/outsys-sizing-issue
Steven Kirk 5 years ago
parent
commit
94a6c09b9b
  1. 4
      native/Avalonia.Native/src/OSX/window.mm

4
native/Avalonia.Native/src/OSX/window.mm

@ -592,6 +592,8 @@ private:
{
@autoreleasepool
{
auto r = this->UnknownSelf();
_isDialog = isDialog;
WindowBaseImpl::Show(activate, isDialog);
@ -1931,7 +1933,7 @@ NSArray* AllLoopModes = [NSArray arrayWithObjects: NSDefaultRunLoopMode, NSEvent
{
if(![self windowShouldClose:self]) return;
}
[self close];
}

Loading…
Cancel
Save