mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 14:17:02 +00:00
Autorelease NSTrackingArea
to avoid leaking it
This commit is contained in:
parent
cc316423ca
commit
3ec3f838db
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ impl Window {
|
|||
owner: native_view
|
||||
userInfo: nil
|
||||
];
|
||||
let _: () = msg_send![native_view, addTrackingArea: tracking_area];
|
||||
let _: () = msg_send![native_view, addTrackingArea: tracking_area.autorelease()];
|
||||
|
||||
native_view.setAutoresizingMask_(NSViewWidthSizable | NSViewHeightSizable);
|
||||
native_view.setWantsBestResolutionOpenGLSurface_(YES);
|
||||
|
|
Loading…
Reference in a new issue