Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Windows: Fix render resource not being released (#10233)

CharlesChen08236ac343123da1
diff --git a/crates/gpui/src/platform/windows/window.rs b/crates/gpui/src/platform/windows/window.rs
index ce9e4c6a1ab..ccca47077e5 100644
--- a/crates/gpui/src/platform/windows/window.rs
+++ b/crates/gpui/src/platform/windows/window.rs
@@ -1297,6 +1297,7 @@ impl Drop for WindowsWindow {
fn drop(&mut self) {
unsafe {
let _ = RevokeDragDrop(self.inner.hwnd);
+ self.inner.renderer.borrow_mut().destroy();
}
}
}