Browse Source

retain self (this)

pull/6199/head
Dan Walmsley 5 years ago
parent
commit
57440e9d36
  1. 6
      native/Avalonia.Native/src/OSX/window.mm

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

@ -585,7 +585,9 @@ private:
virtual HRESULT Show (bool activate) override virtual HRESULT Show (bool activate) override
{ {
@autoreleasepool @autoreleasepool
{ {
auto r = this->UnknownSelf();
WindowBaseImpl::Show(activate); WindowBaseImpl::Show(activate);
HideOrShowTrafficLights(); HideOrShowTrafficLights();
@ -1925,7 +1927,7 @@ NSArray* AllLoopModes = [NSArray arrayWithObjects: NSDefaultRunLoopMode, NSEvent
{ {
if(![self windowShouldClose:self]) return; if(![self windowShouldClose:self]) return;
} }
[self close]; [self close];
} }

Loading…
Cancel
Save