Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix dealloc of MacWindow (#7708)
Conrad Irwinb800fe96d298
diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rsindex da42f919a50..f57f6cfe5a8 100644--- a/crates/gpui/src/platform/mac/window.rs+++ b/crates/gpui/src/platform/mac/window.rs@@ -40,7 +40,7 @@ use raw_window_handle::{use smallvec::SmallVec;use std::{any::Any,- cell::{Cell, RefCell},+ cell::Cell,ffi::{c_void, CStr},mem,ops::Range,@@ -1086,7 +1086,7 @@ unsafe fn get_window_state(object: &Object) -> Arc<Mutex<MacWindowState>> {unsafe fn drop_window_state(object: &Object) {let raw: *mut c_void = *object.get_ivar(WINDOW_STATE_IVAR);- Rc::from_raw(raw as *mut RefCell<MacWindowState>);+ Arc::from_raw(raw as *mut Mutex<MacWindowState>);}extern "C" fn yes(_: &Object, _: Sel) -> BOOL {