Autorelease NSTrackingArea to avoid leaking it
This commit is contained in:
1 parent
3f6f6959cd
commit
aa3b22ebf1
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user