diff --git a/src/gl/macos.rs b/src/gl/macos.rs index 436afb24..f68b796a 100644 --- a/src/gl/macos.rs +++ b/src/gl/macos.rs @@ -95,7 +95,6 @@ impl GlContext { view.setWantsBestResolutionOpenGLSurface_(YES); - let () = msg_send![view, retain]; NSOpenGLView::display_(view); parent_view.addSubview_(view); diff --git a/src/macos/window.rs b/src/macos/window.rs index 9075b18c..57bca108 100644 --- a/src/macos/window.rs +++ b/src/macos/window.rs @@ -72,7 +72,6 @@ impl WindowInner { pub(super) fn close(&self) { if self.open.get() { self.open.set(false); - unsafe { // Take back ownership of the NSView's Rc let state_ptr: *const c_void = *(*self.ns_view).get_ivar(BASEVIEW_STATE_IVAR);