We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c903a8 commit 9ee6f99Copy full SHA for 9ee6f99
1 file changed
plugin-canvas/src/platform/mac/window.rs
@@ -275,9 +275,7 @@ impl OsWindowInterface for OsWindow {
275
impl Drop for OsWindow {
276
fn drop(&mut self) {
277
if let Some(display_link) = self.display_link.borrow_mut().take() {
278
- unsafe {
279
- display_link.removeFromRunLoop_forMode(&NSRunLoop::mainRunLoop(), NSDefaultRunLoopMode)
280
- };
+ display_link.invalidate();
281
}
282
283
if let Some(timer) = self.timer.borrow_mut().take() {
0 commit comments