Skip to content

Commit ef23336

Browse files
committed
Remove retain call instead on Mac
1 parent b966fc9 commit ef23336

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/gl/macos.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ impl GlContext {
9191

9292
view.setWantsBestResolutionOpenGLSurface_(YES);
9393

94-
let () = msg_send![view, retain];
9594
NSOpenGLView::display_(view);
9695
parent_view.addSubview_(view);
9796

src/macos/window.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,6 @@ impl WindowInner {
8686
msg_send![class!(NSNotificationCenter), defaultCenter];
8787
let () = msg_send![notification_center, removeObserver:self.ns_view];
8888

89-
// Ensure all subviews are detached and released
90-
let subviews: id = msg_send![self.ns_view, subviews];
91-
let count: usize = msg_send![subviews, count];
92-
for i in 0..count {
93-
let subview: id = msg_send![subviews, objectAtIndex: i];
94-
subview.removeFromSuperview();
95-
let () = msg_send![subview, release];
96-
}
97-
9889
drop(window_state);
9990

10091
// Close the window if in non-parented mode

0 commit comments

Comments
 (0)